pub trait TnuaBasisWithDisplacement: TnuaBasis {
// Required method
fn displacement(access: &TnuaBasisAccess<'_, Self>) -> Option<Vector3>;
}Expand description
The basis has a specific point the character should be at, which may not be the actual position in Bevy or in the physics engine.
This typically means the basis is applying forces to get the characeter to that position.
Required Methods§
Sourcefn displacement(access: &TnuaBasisAccess<'_, Self>) -> Option<Vector3>
fn displacement(access: &TnuaBasisAccess<'_, Self>) -> Option<Vector3>
The displacement of the character from where the basis wants it to be.
This is a query method, used by the action to determine what the basis thinks.
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.