area62 members
Physics & grids
Bodies, joints and collisions, and grids for paths, light and distance.
Start here
datumhue.physics.worldCreate an additional isolated physics world.DrawCanvas:bodySpawn an invisible physics-only body on the canvas.datumhue.grid.newCreate a zeroed width x height grid (each dimension 1..=4096).
In this area
- datumhue.physicsUnified 2D/3D physics.
- datumhue.grid2D integer grids with pathfinding, FOV, flood-fill, cellular automata, and procedural fills.
- PhysicsWorldAn isolated physics world created by
datumhue.physics.world(). - JointA physics joint created by
datumhue.physics.add_joint. - CharacterControllerA kinematic character controller bound to a body, created by
body:character_controller{...}. - GridA 2D integer grid with pathfinding, FOV, flood-fill, cellular automata, and procedural fills.
- LightFieldA 2D scalar field of poured lights over grid cells: each pour writes a radial linear falloff and cells keep the maximum of everything poured onto them, so overlapping lights never sum past the brightest source.
- PathAgentA grid mover that owns the walk-the-waypoints bookkeeping: pathing to a target, waypoint acceptance including the final waypoint, motion carry-over, and repath cadence.