TnuaBasisWithFrameOfReferenceSurface

Trait TnuaBasisWithFrameOfReferenceSurface 

Source
pub trait TnuaBasisWithFrameOfReferenceSurface: TnuaBasis {
    // Required methods
    fn effective_velocity(access: &TnuaBasisAccess<'_, Self>) -> Vector3;
    fn vertical_velocity(access: &TnuaBasisAccess<'_, Self>) -> Float;
}
Expand description

The character controlled by the basis may stand on the surface of an moving object, and needs to move together with said object.

Required Methods§

Source

fn effective_velocity(access: &TnuaBasisAccess<'_, Self>) -> Vector3

The velocity of the character, relative the what the basis considers its frame of reference.

This is a query method, used by the action to determine what the basis thinks.

Source

fn vertical_velocity(access: &TnuaBasisAccess<'_, Self>) -> Float

The vertical velocity the character requires to stay the same height if it wants to move in effective_velocity.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§