class ModelNodeInst (client-side)
Available since version: 0.3.8.0
This class represents an instantiated model node. The object is owned by the model.
Properties
ModelNodeInst& parentNode
Represents the parent model node instance.
Visual& nodeVisual
Represents the visual attached to this model node instance.
Mat4& trafo
Represents the transform from this node to its parent node.
Mat4& trafoObjToCam
Represents the transform from the node object to camera space.
BBox3d& bbox3D
Represents the node bounding box in world space.
int numNodeAnis
Represents the number of active node animation channels.
int masterAni
Represents the index of the current master animation channel.
float masterAniSpeed
Represents the current master animation speed.
Methods
removeAllNodeAnis
Removes all active animations from this model node.
void removeAllNodeAnis()
findMasterAni
Finds the current master animation for this model node.
void findMasterAni()
calcWeights
Calculates animation weights for this model node.
void calcWeights(Model model)
Parameters:
Modelmodel: the owning model.
calcBlending
Calculates animation blending for this model node.
void calcBlending(Model model)
Parameters:
Modelmodel: the owning model.
setNodeVisual
Sets the visual attached to this model node.
void setNodeVisual(Visual visual, bool animated)
Parameters:
Visualvisual: the visual to attach to this model node.boolanimated: whether the visual should be animated.
isRootNode
Checks whether this model node is the root node.
bool isRootNode()
Returns bool:
addToNodeAniWeight
Adds a delta to the weight of a node animation channel.
void addToNodeAniWeight(int i, float delta)
Parameters:
inti: the node animation channel index.floatdelta: the weight delta to apply.
Callbacks
No callbacks.