luv

Workshop wiki

world-quantities.lisp

luvcraft/world-quantities.lisp

system luvcraft/world · 11 definitions · on GitHub

Quantities owned by the world model rather than the luvcraft application.

A continuous lattice coordinate is measured in cell. cell is dimensionless but deliberately not the identity unit: one cell is not one metre unless a particular voxel-space says so through its CELL-EXTENT.

in-package#:luvcraft.world.quantities
math:define-quantity-kind:lattice-coordinate:dimensionnil:parent:dimensionless
math:define-quantity-kind:unit-direction:dimensionnil:parent:dimensionless
math:define-quantity-kind:lattice-velocity:dimension
:duration-1
math:define-quantity-kind:lattice-acceleration:dimension
:duration-2
math:define-unit:cell:dimensionnil:quantity-kind:lattice-coordinate
math:define-quantity:world-direction:kind:unit-direction:components
:world-x-direction:world-y-direction:world-z-direction
math:define-quantity:world-distance:kind:lattice-coordinate:non-negative-pt
math:define-quantity:ray-distance:kind:lattice-coordinate:non-negative-pt
math:define-quantity:world-position:kind:lattice-coordinate:character:point:components
:world-x-position:world-y-position:world-z-position
math:define-quantity:world-velocity:kind:lattice-velocity:components
:world-x-velocity:world-y-velocity:world-z-velocity
math:define-quantity:voxel-cell-extent:kind:length:non-negative-pt