Crate bevy_tnua_xpbd2d
source ·Expand description
§bevy_xpbd_2d Integration for bevy-tnua
In addition to the instruction in bevy-tnua’s documentation:
- Add
TnuaXpbd2dPlugin
to the Bevy app. - Optionally: Add
TnuaXpbd2dSensorShape
to the sensor entities. This means the entity of the characters controlled by Tnua, but also other things like the entity generated byTnuaCrouchEnforcer
, that can be affected with a closure.
Structs§
- Add this plugin to use bevy_xpbd_2d as a physics backend.
- Add this component to make
TnuaProximitySensor
cast a shape instead of a ray.