#bevy #gamedev #avian3d

bevy-ichun

A simple kinematic character controller for avian3d

1 unstable release

new 0.1.0 Mar 4, 2025

#439 in Game dev

Download history 99/week @ 2025-02-28

99 downloads per month

MIT/Apache

43KB
532 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.1

Features

This library has three main components:

Kcc

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

  • applying gravity
  • handling slopes
  • 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
  • jumping
  • 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
  • jump
  • 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

~22–34MB
~554K SLoC