Skip to main content

Crate bevy_kana

Crate bevy_kana 

Source
Expand description

§bevy_kana

Ergonomic, opinionated utilities for Bevy — type-safe math, input wiring, and more.

bevy_kana is a growing collection of ergonomic utilities for Bevy projects. Enable features to pull in what you need.

§Features

  • math (default) — zero-cost newtype wrappers around Bevy math primitives that prevent accidental mixing at compile time.
  • input (default) — macros and utilities for wiring keyboard actions to commands through bevy_enhanced_input.

Disable defaults to pick only what you need:

bevy_kana = { version = "0.0.1", default-features = false, features = ["math"] }

Modules§

prelude
Convenience re-exports for glob imports.

Structs§

Displacement
A delta or offset in 3D space.
Orientation
A rotation in 3D space.
Position
A point in 3D space.
ScreenPosition
Pixel-space coordinates on screen.
Velocity
Rate of position change in 3D space.

Traits§

ToF32
Lossy conversion to f32.
ToF64
Widening conversion to f64.
ToI32
Narrowing conversion to i32.
ToU8
Narrowing conversion to u8.
ToU16
Narrowing conversion to u16.
ToU32
Narrowing conversion to u32.
ToUsize
Conversion to usize.