#bevy #avian3d #gamedev #kcc

bevy-ichun

A simple kinematic character controller for avian3d

3 releases (breaking)

Uses new Rust 2024

new 0.3.0 Apr 18, 2025
0.2.0 Mar 23, 2025
0.1.0 Mar 4, 2025

#436 in Game dev

Download history 111/week @ 2025-03-01 17/week @ 2025-03-08 118/week @ 2025-03-22 10/week @ 2025-03-29 82/week @ 2025-04-12

213 downloads per month

MIT/Apache

61KB
879 lines

Ichun (行ちゅん)

bevy-ichun (Okinawan dialect for the Japanese word 行く, meaning 'to go') is a simple kinematic character controller for Bevy with Avian3D.

Versions

Bevy Avian Ichun
0.15 0.2 <= 0.2

Features

This library has three main components:

Kcc

The Kcc component provides the basic functionality for a kinematic character controller:

  • applying gravity
  • handling slopes
  • handling moving platforms
  • collision handling with static geometry

Kcc movement (enabled by default kcc_movement)

The KccMovementConfig component provides events which can be used to move the Kcc around:

  • moving
  • running
  • jumping
  • floating
  • rotating

Kcc input (enabled by default kcc_input)

This component handles user defined input and uses the kcc_movement to move the Kcc around.

  • forward, backward, left and right
  • run
  • jump
  • float
  • optional key to activate roation
  • disable input handling for each Kcc & globally

Defining a key to handle roation is not yet implemented (the mouse is used). This feature is depending on the kcc_movement.

Examples

Examples are in the examples folder. It can be run with following command: cargo r --example simple-kcc

Reference material

License

Dual-licensed under either:

at your option.

Dependencies

~26–37MB
~601K SLoC