movable_physics
Stores information related to the movable's physics and keeping track of relevant signals to trigger movement
Vars | |
angle_of_movement | The angle of the path the object takes on the x/y plane |
---|---|
bounce_sound | The sound effect to play when bouncing off of something |
cached_animate_movement | The cached animate_movement of the parent; any kind of gliding when doing Move() makes the physics look derpy, so we'll just make Move() be instant |
horizontal_friction | The horizontal_velocity is reduced by this every process(), this doesn't take into account the object being in the air vs gravity pushing it against the ground |
horizontal_velocity | Modifies the pixel_x/pixel_y of an object every process() |
physic_flags | Flags for turning on certain physic properties, see the top of the file for more information on flags |
vertical_velocity | Modifies the pixel_z of an object every process(), movables aren't Move()'d into another turf if pixel_z exceeds 16, so try not to supply a super high vertical value if you don't want the movable to clip through multiple turfs |
z_floor | The pixel_z that the object will no longer be influenced by gravity for a 32x32 turf, keep this value between -16 to 0 so it's visuals matches up with it physically being in the turf |
z_gravity | The vertical_velocity is reduced by this every process() |
Procs | |
start_movement | Let's get moving |
stop_movement | Alright it's time to stop |
Var Details
angle_of_movement
The angle of the path the object takes on the x/y plane
bounce_sound
The sound effect to play when bouncing off of something
cached_animate_movement
The cached animate_movement of the parent; any kind of gliding when doing Move() makes the physics look derpy, so we'll just make Move() be instant
horizontal_friction
The horizontal_velocity is reduced by this every process(), this doesn't take into account the object being in the air vs gravity pushing it against the ground
horizontal_velocity
Modifies the pixel_x/pixel_y of an object every process()
physic_flags
Flags for turning on certain physic properties, see the top of the file for more information on flags
vertical_velocity
Modifies the pixel_z of an object every process(), movables aren't Move()'d into another turf if pixel_z exceeds 16, so try not to supply a super high vertical value if you don't want the movable to clip through multiple turfs
z_floor
The pixel_z that the object will no longer be influenced by gravity for a 32x32 turf, keep this value between -16 to 0 so it's visuals matches up with it physically being in the turf
z_gravity
The vertical_velocity is reduced by this every process()
Proc Details
start_movement
Let's get moving
stop_movement
Alright it's time to stop