Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commitdd348ac6c3

README.md

entity

Reading the live scene into a graph: an entity's transform, points, geometry and bounds.

The definitions live in proc.ops.entity; this pack is what puts them in the op registry, so procgen.searchNodes("", { pack = "entity" }) lists the family and procgen.describeNode("op.<id>") describes any one of them.

Ops

  • entity.transform — one entity's pose, as a value.
  • entity.points — a list of entities, or a parent's children, as ordered points: scene.fetch in the world's space or under each parent, with each entity's own up beside its pose.
  • entity.geometry — the mesh one entity's Model draws.
  • entity.bounds — one entity's bounds, or its hierarchy's.

scene.query and scene.fetch (the scene pack) read any number of entities, with any of their components, in the graph's own space.