Skip to main content

Crate rayengine_core

Crate rayengine_core 

Source
Expand description

Display-independent primitives shared by 2D and 3D rayengine games.

This crate deliberately has no raylib dependency. Simulations and tests can run without a C compiler, window, display server, or graphics context.

Re-exports§

pub use glam;

Modules§

audio
Display-independent audio buses, settings, and frame-clock gain envelopes.
camera
Corresponding cameras with a stable visible height or vertical field of view.
collision
Shape overlap queries and independent swept character movement.
events
Typed game events with explicit tick lifetime and reused storage.
first_person
Optional first-person movement over Body3D. Games own worlds, spawning, checkpoints, menus, interaction and input-edge consumption.
input
Action input whose edges survive render frames and are consumed per tick.
jobs
Optional bounded CPU jobs. Native GPU resources remain on their owning thread.
manifest
Versioned, optional project descriptions shared by tools and the runtime.
mesh
CPU triangle data for procedural geometry, independent of a graphics context.
pathfinding
Grid navigation: A* paths, line-of-sight smoothing, path following and distance fields over caller-owned 2D grids.
physics
Predictable arcade physics with continuous translation and no rotation.
prelude
Common imports for display-independent game code.
quality
CPU-only render quality validation and allocation planning.
save
Versioned, checksummed containers for game-defined payloads.
scene
Dense entities/components with an optional, validated transform hierarchy.
spatial
Display-independent selection, proximity, and conservative camera visibility.
sprite
Validated sprite regions and CPU-only animation with explicit simulation time.
time
Fixed simulation timing with bounded catch-up and render interpolation.
transform
Local and global transforms for typed 2D and 3D entities.
tween
Display-independent tweens, easing, sequences, parallel groups and screen shake.
ui
Small anchored UI primitives shared by both dimensions.
viewport
One viewport contract for cameras, layout, letterboxing and pointer mapping.

Structs§

Entity
Lightweight unique ID, or handle, of an entity
World
An unordered collection of entities, each having any number of distinctly typed components

Traits§

Bundle
A statically typed collection of components