dorkhub

bevy_fps_controller

Source engine inspired Bevy FPS player movement controller plugin

qhdwight
Rust28136 forksApache-2.0updated 2 months ago
visit the demogit clone https://github.com/qhdwight/bevy_fps_controller.gitqhdwight/bevy_fps_controller

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

more like this

anne-key

Firmware for Anne Pro Keyboard written in Rust

Rust572

TachiSnap

TachiSnap — Pixel Snapper for animation pixel artists. Rust + WebAssembly client-side tool for cleaning up AI-generated…

HTML50

bit_gossip

Pathfinding library for calculating all node pairs' shortest paths in an unweighted undirected graph.

Rust50

search

search projects, people, and tags