kit library
High-level gameplay, camera, character, environment, audio, and debug utilities for Flutter Scene.
Import this barrel to access ready-to-use game components:
- SpringArmComponent and CameraShake for camera rigs.
- ThirdPersonControllerComponent and Steering for character motion.
- DayNightCycleComponent and WaterSurfaceComponent for atmospheric environments.
- SoundManager and SurfaceFootstepAudio for game sound.
- NodePool and PoissonDiscSampler for object recycling and spawning.
- DebugDraw and PerformanceOverlay3D for immediate-mode visualization.
Classes
- AtmosphericLighting Gameplay kit
- Evaluated atmospheric lighting parameters for a specific sun elevation.
- BoundsFraming Gameplay kit
- Utility for computing camera framing transforms for scene nodes.
- CameraShake Gameplay kit
- Procedural trauma-decay camera shake generator driven by deterministic noise.
- CameraShakeOffset Gameplay kit
- Evaluated translational and rotational camera shake offsets.
- DayNightCycleComponent Gameplay kit
- Controller driving time-of-day solar movement and dynamic lighting transitions.
- DebugDraw Rendering
- Immediate-mode wireframe debug visualization utility for lines, rays, boxes, spheres, and axes.
- FloatingMotionComponent Gameplay kit
- Adds organic sinusoidal hovering, bobbing, and wobble to collectible items and props.
- GerstnerWave Gameplay kit
- Definition of a single directional Gerstner wave.
- NodePool Gameplay kit
- High-performance object recycler for transient nodes (projectiles, damage numbers, effects).
- PerformanceOverlay3D
- Lightweight diagnostic performance overlay widget for 3D framerate and render monitoring.
- PoissonDiscSampler Gameplay kit
- Poisson-disc spatial point distribution generator for natural obstacle and foliage scattering.
- SoundManager Audio
- High-level audio utility providing one-shot sound playback with pitch jitter and 3D positioning.
- SpringArmComponent Gameplay kit
- A camera boom component that maintains distance to a target while preventing geometry occlusion by raycasting against the environment.
- Steering Gameplay kit
- Mathematical steering force algorithms for autonomous NPCs, wildlife, and flocking.
- SurfaceFootstepAudio Audio
- Helper mapping surface material tags to audio clip banks.
- ThirdPersonControllerComponent Gameplay kit
- High-level 3rd-person character movement component with ground raycast snapping, slope sliding, coyote time, and turn smoothing.
- VirtualJoystick
- An ergonomic on-screen multi-touch virtual thumbstick for driving game characters and cameras.
- WaterSurfaceComponent Gameplay kit
- Generates and animates realistic trochoidal ocean water surfaces.
Enums
- SurfaceMaterialType Audio
- Surface material classification for footstep and impact sound playback.
Typedefs
- JoystickCallback = void Function(Vector2 direction)
- Callback for joystick input events emitting a normalized 2D direction vector.