Function avian3d::dynamics::integrator::semi_implicit_euler::integrate_velocity
source · pub fn integrate_velocity(
lin_vel: &mut Vector,
ang_vel: &mut Vector,
force: Vector,
torque: Vector,
inv_mass: Scalar,
inv_inertia: impl Into<InverseInertia>,
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.