luvcraft/agent/tests/surroundings.lisp
(&key (id (gensym "BLOCK-WORLD-"))
(chunk-width 16)
(chunk-height 16)
(chunk-depth 16)
(cell-extent 1d0)
source)(world x y z)(world x y z)Return one site as BLOCK and :RESIDENT, or NIL and :ABSENT. This sparse world-coordinate accessor constructs coordinate descriptors and a chunk lookup key. It is appropriate for inspectors, ray hits, collision probes, and sparse interaction. Algorithms over many cells should select a chunk/domain once and use…
(name &optional (error-p t))Return the shared block kind whose durable semantic name is NAME. When ERROR-P is true, signal an error rather than returning NIL for an unknown name. Save files and other external descriptions refer to block kinds through this vocabulary instead of printing CLOS object identities.
(world minimum maximum)Test whether two compatible scalars are equal.
A small SDF-rendered garden gnome carrying a WORLD-AGENT.
(x y z)Division of two represented quantities.
Test whether one compatible scalar is less than another.
The componentwise absolute value of a raw value.
Subtraction or unary negation.
(command)Whether COMMAND must execute at its application's frame boundary.