pub fn integrate_velocity(
lin_vel: &mut Vector,
ang_vel: &mut Vector,
force: Vector,
torque: Vector,
mass: ComputedMass,
angular_inertia: &ComputedAngularInertia,
global_angular_inertia: &GlobalAngularInertia,
rotation: Rotation,
locked_axes: LockedAxes,
gravity: Vector,
delta_seconds: Scalar,
)
Expand description
Integrates velocity based on the given forces in order to find
the linear and angular velocity after delta_seconds
have passed.
This uses semi-implicit (symplectic) Euler integration.