Expand description
§bevy_rapier2d Integration for bevy-tnua
In addition to the instruction in bevy-tnua’s documentation:
- Add
TnuaRapier2dPlugin
to the Bevy app. - Add
TnuaRapier2dIOBundle
to each character entity controlled by Tnua. - Optionally: Add
TnuaRapier2dSensorShape
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§
- Tnua
Rapier2dIO Bundle Deprecated bevy_rapier2d
-specific components required for Tnua to work. - Add this plugin to use bevy_rapier2d as a physics backend.
- Add this component to make
TnuaProximitySensor
cast a shape instead of a ray.