drift_handler
Component that handles drifting Manages a movement loop that actually does the legwork of moving someone Alongside dealing with the post movement input blocking required to make things look nice
Vars | |
delayed | Have we been delayed? IE: active, but not working right this second? |
---|---|
drift_force | How much force is behind this drift. |
ignore_next_glide | Should we ignore the next glide rate input we get? This is to some extent a hack around the order of operations Around COMSIG_MOVELOOP_POSTPROCESS. I'm sorry lad |
Procs | |
New | Accepts three args. The direction to drift in, if the drift is instant or not, and if it's not instant, the delay on the start |
handle_glidesize_update | We're going to take the passed in glide size and use it to manually delay our loop for that period to allow the other movement to complete |
remove_angle_force | Removes all force in a certain direction |
stopped_pulling | If we're pulling something and stop, we want it to continue at our rate and such |
Var Details
delayed
Have we been delayed? IE: active, but not working right this second?
drift_force
How much force is behind this drift.
ignore_next_glide
Should we ignore the next glide rate input we get? This is to some extent a hack around the order of operations Around COMSIG_MOVELOOP_POSTPROCESS. I'm sorry lad
Proc Details
New
Accepts three args. The direction to drift in, if the drift is instant or not, and if it's not instant, the delay on the start
handle_glidesize_update
We're going to take the passed in glide size and use it to manually delay our loop for that period to allow the other movement to complete
remove_angle_force
Removes all force in a certain direction
stopped_pulling
If we're pulling something and stop, we want it to continue at our rate and such