@modoki/engine / index / hasParent
Function: hasParent()
hasParent(
entityId,world?):boolean
True if entityId has a non-zero parentId in world (i.e. its world ≠ local). Cheap: reads the entity's EntityAttributes directly, no map rebuild. Physics uses this to keep the root-body fast path (no matrix inverse) for the overwhelmingly common unparented case.
Parameters
entityId
number
world?
World = ...
Returns
boolean