-
I'd like to be able to just pause the simulation both for using with a pause menu and for implementing mechanics like a dash ability that sends you shooting linearly in a single direction for a short time while removing control from the player (a la Celeste). |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
For the pause menu, you can use bevy-tnua/examples/platformer_3d.rs Line 40 in 3578071 Keep in mind that you also need to pause Rapier while in the pause menu. As for removing controls from the player - I'm afraid it is not currently supported. I do want to implement things like dashes as part of Tnua (#6). For now, you don't have to remove the entire bundle - removing the |
Beta Was this translation helpful? Give feedback.
-
Starting from version 0.7:
|
Beta Was this translation helpful? Give feedback.
For the pause menu, you can use
TnuaSystemSet
. Bevy allows you to put conditions on existing system sets, so you can just put your own condition on it. This is how it is done in the demos:bevy-tnua/examples/platformer_3d.rs
Line 40 in 3578071
Keep in mind that you also need to pause Rapier while in the pause menu.
As for removing controls from the player - I'm afraid it is not currently supported. I do want to implement things like dashes as part of Tnua (#6). For now, you don't have to remove the entire bundle - removing the
TnuaMotor
should be enough.