Module util

Source

Structs§

LeftoverHeight
Thrown when attempting to retrieve the result of SegmentedJumpInitialVelocityCalculator without converting all the height to kinetic energy.
SegmentedJumpDurationCalculator
SegmentedJumpInitialVelocityCalculator
Calculate the kinetic energy required to jump to a certain height when different gravity is applied in different segments of the jump.
VelocityBoundary
An indication that a character was knocked back and “struggles” to get back to its original velocity.

Traits§

MotionHelper
Helper trait for implementing basis and actions.

Functions§

calc_angular_velchange_to_force_forward
rotation_arc_around_axis
Calculate the rotation around around_axis required to rotate the character from current_forward to desired_forward.