Skip to content

qhdwight/bevy_fps_controller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust crates.io

Bevy FPS Controller

Inspired from Source engine movement, this plugin implements movement suitable for FPS games.

Feel free to make issues/PRs!

Features

  • Air strafing
  • Bunny hopping if the jump key is held down
  • Moving along sloped ground
  • Crouching and sprinting
  • Crouching prevents falling off ledges (Rapier only)
  • Instantly clear small steps (Rapier only)
  • Noclip mode
  • Configurable settings

Examples

See minimal_rapier.rs or minimal_avian.rs

Make sure to enable either the rapier or avian feature in Cargo.toml depending on what your backing physics engine is.

cargo run --release --features rapier --example minimal_rapier

Demo

controller_demo.mp4

Used by my other project: https://github.com/qhdwight/voxel-game-rs

About

Source engine inspired Bevy FPS controller plugin

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Contributors 11

Languages