HammeriteEntityNodes
Core: entities. Inherits Object
What the six entity base classes share, and the one way to ask whether a node is an entity's.
An entity's node extends one of HammeritePointEntityNode3D, HammeritePointEntityAnimatableBody3D, HammeritePointEntityRigidBody3D, HammeriteBrushEntityNode3D, HammeriteBrushEntityStaticBody3D or HammeriteBrushEntityArea3D - Node3D and the physics bodies have no common class to put them under - and each delegates what they all do to the functions here, so a fix to one is a fix to all six.
Methods
| Returns | Method |
|---|---|
bool | is_entity_node(node: Object) static |
HammeriteEntity | entity_of(node: Object) static |
Method descriptions
is_entity_node()
static func is_entity_node(node: Object) -> bool
Whether node is the node of an entity: an instance of any of the six bases.
entity_of()
static func entity_of(node: Object) -> HammeriteEntity
The entity node stands for, or null when it is not an entity's node or has none yet.