pub fn get_rigid_body_properties_no_velocities<F: TryFrom<f32>>(
rigid_body: &RigidBody
) -> SubtrActorResult<[F; 7]>where
<F as TryFrom<f32>>::Error: Debug,
Expand description
Extracts the location and rotation from a boxcars::RigidBody
and
converts them to a type implementing TryFrom<f32>
.
If any of the components of the rigid body are not set (None
), they are
treated as zero.
The returned array contains seven elements in the following order: x, y, z location, x, y, z, w rotation.