voxcraft / voxcraft-sim

a GPU-accelerated voxel-based physics engine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[enchancement] Separate body from world.

skriegman opened this issue · comments

Create an <Env> and <Body> which are combined with logical OR to give <Data>.

<Body> is nested within an <Env> by shifting its <BodyCoordinates>.

Then it is trivial to generalize the specific methods I implemented in dev-growth for env.reset, body.reset, body.remove.

Of course multiple contiguous geometries, separated by zeroes, can still exist within <Body>. Or the multi-body matrices could be supplanted by a mechanism that draws single body .vxd files out of a directory and combines them in a swarm within an <Env>.

Multiple <Env> would be useful. They should be stored in a single .vxa if they are not coevolved.