#mesh #gamedev #volumetrics

stag-toolkit

Real-time solutions for 3D games, art, and simulations

2 releases

Uses new Rust 2024

new 0.5.5 Apr 18, 2026
0.5.2 Dec 22, 2025

#387 in Visualization

Apache-2.0

300KB
6.5K SLoC

Stag Toolkit

GitHub | Ko-fi

Real-time solutions toolkit for handling mesh and volumetric data.


lib.rs:

Real-time solutions for 3D games, art, and simulations.

This library provides utility data structures for handling 3D data, such as meshes and volumetrics. Additional utilities like projection and SDF libraries are also provided.

Module Layout

  • animation: under animation feature flag, contains experimental animation data structures.
  • classes: under godot feature flag, contains Godot-Rust classes for use inside Godot Engine's Stag Toolkit addon
  • math: Math utilities including projection, volumetrics, Signed Distance Fields, and raycasting.
  • mesh: Mesh utilities including the TriangleMesh data structure, and an SDF-based terrain generation system.
  • physics: under the physics_server feature flag, contains experimental physics-related data structures
  • simulation: includes simple a rope simulation
  • utils: various utilities used globally across the crate

Feature Flags

  • animation - Enables experimental animation library. Not solidified and will see breaking changes over time.
  • physics_server - Enables experimental physics server utilities. Not solidified and will see breaking changes over time.
  • godot - Enables Godot Engine classes using godot-rust/gdext crate.

Dependencies

~9MB
~246K SLoC