bevy_xpbd
bevy_xpbd copied to clipboard
AnyCollider context
trafficstars
Objective
Provide a way for the methods in AnyCollider to obtain extra context from the ecs/entity it is attached to.
Solution
- Add a
ContextGAT to theAnyCollidertrait - Optionally query for this context in the broad/narrow phase
- Pass the
Option<Context>to theAnyCollidermethods when called
Changelog
- Changed:
AnyColliderrequires aContextGAT, to provide additional context from the ecs.