Module control_helpers

Module control_helpers 

Source
Expand description

Various helpers to make Tnua’s advanced features easier to use.

See https://github.com/idanarye/bevy-tnua/wiki

Tnua exposes its mid-level data for user systems to allow as much flexibility and customizability as it can provide. This, however, means that some of the advanced features can be complex to use. This module provides helpers that allow using these features in an easier although less flexible way.

Structs§

TnuaActionsCounter
An helper for counting the actions in scenarios where actions can only be done a limited amount of times. Mainly used for implementing air actions.
TnuaAirActionsPlugin
Use the action slots definition to track air actions.
TnuaAirActionsTrackerDeprecated
An helper for tracking air actions.
TnuaBlipReuseAvoidance
Helper for keeping track on entities the character was just interacting with, so that it won’t immediately interact with again after the action is finished.
TnuaHandleForSimpleFallThroughPlatformsHelper
Handle for working with TnuaSimpleFallThroughPlatformsHelper.
TnuaSimpleAirActionsCounterDeprecated
A simple counter that counts together all the air actions a character is able to perform.
TnuaSimpleFallThroughPlatformsHelper
Helper component for implementing fall-through platforms.

Enums§

TnuaActionCountingActionRule
A decision, defined by TnuaActionSlots, regarding an individual action.
TnuaActionCountingStatus
An helper for tracking whether or not the character is in a situation when actions are counted.
TnuaActionCountingUpdate
The result of TnuaActionCountingStatus::update().
TnuaAirActionsUpdate
The result of TnuaAirActionsTracker::update().

Traits§

TnuaActionSlots
See the derive macro.
TnuaAirActionDefinition
Must be implemented by control schemes that want to use TnuaAirActionsTracker or TnuaSimpleAirActionsCounter.
TnuaHasTargetEntity
Must be implemented by control schemes that want to use TnuaBlipReuseAvoidance or

Derive Macros§

TnuaActionSlots
Define the behavior of action that can be performed a limited amount of times during certain durations (e.g. air actions)