bevy-tnua 0.2.1

A floating character controller for bevy_rapier
docs.rs failed to build bevy-tnua-0.2.1
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: bevy-tnua-0.28.0

Build Status Latest Version Rust Documentation

Tnua - A Character Controller for bevy_rapier.

Tnua ("motion" in Hebrew) is a floating character controller, which means that instead of constantly touching the ground the character floats above it, which makes many aspects of the motion control simpler.

Tnua uses Rapier, and supports both the 2D and 3D versions of it:

Features

  • Supports both 2D and 3D versions of Rapier
  • Running
  • Jumping
  • Variable height jumping
  • Coyote time
  • Running up/down slopes/stairs
  • Tilt correction
  • Moving platforms
  • Rotating platforms
  • Animation helpers (not the animation itself, but Tnua has facilities that help deciding which animation to play)

Examples:

Versions

bevy bevy-tnua bevy_rapier
0.10 0.1, 0.2 0.21

Reference Material

The following were used for coding the math and physics of Tnua:

Alternatives

  • bevy_mod_wanderlust - the original inspiration for this mod, and where I got the floating capsule video from. I ended up creating my own plugin because bevy_mod_wanderlust does not support 2D.
  • Rapier itself has a character controller. It's not a floating character controller, but it's integrated with the physics engine itself and uses that privilege to work out some of the problems the floating model is used to address.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.