Module basis_capabilities

Module basis_capabilities 

Source
Expand description

Generic properties of basis that actions and control helpers may rely on.

All the basis capabilities provided by Tnua itself should be in this module, but third party crates can define their own. Custom capabilities for user code (an actual game that uses Tnua) are usually redundant, since actions and control helpers defined there can usually just use the concrete basis.

Capabilities typically use TnuaBasisAccess to access the basis, since it provides the configuration and memory of the basis rather than just the input.

Traitsยง

TnuaBasisWithDisplacement
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.
TnuaBasisWithFloating
The basis is a floating character controller.
TnuaBasisWithFrameOfReferenceSurface
The character controlled by the basis may stand on the surface of an moving object, and needs to move together with said object.
TnuaBasisWithGround
The basis keeps track on the entity the chracter stands on - and whether or not it stands on something.
TnuaBasisWithHeadroom
The basis can keeps track of the space above the character.
TnuaBasisWithSpring
The basis applies a spring force.