Class NodePlus
java.lang.Object
gaiasky.util.gdx.model.IntNode
gaiasky.util.gdx.model.gltf.scene3d.model.NodePlus
-
Field Summary
Modifier and TypeFieldDescriptioncom.badlogic.gdx.utils.Array<String>
Optional morph target names (e.g.Null if no morph targets.Fields inherited from class gaiasky.util.gdx.model.IntNode
globalTransform, id, inheritTransform, isAnimated, localTransform, parent, parts, rotation, scale, translation
-
Constructor Summary
-
Method Summary
Methods inherited from class gaiasky.util.gdx.model.IntNode
addChild, addChildren, attachTo, calculateBoneTransforms, calculateBoundingBox, calculateBoundingBox, calculateLocalTransform, calculateTransforms, calculateWorldTransform, detach, extendBoundingBox, extendBoundingBox, getChild, getChild, getChildCount, getChildren, getNode, getParent, hasChildren, hasParent, insertChild, insertChildren, removeChild
-
Field Details
-
weights
Null if no morph targets. -
morphTargetNames
Optional morph target names (e.g. exported from Blender with custom properties enabled). shared with others nodes with same mesh.
-
-
Constructor Details
-
NodePlus
public NodePlus()
-
-
Method Details
-
copy
Description copied from class:IntNode
Creates a nested copy of this Node, any child nodes are copied using this method as well. TheIntNode.parts
are copied using theIntNodePart.copy()
method. Note that that method copies the material and nodes (bones) by reference. If you intend to use the copy in a different node tree (e.g. a different Model or ModelInstance) then you will need to update these references afterwards.Override this method in your custom Node class to instantiate that class, in that case you should override the
IntNode.set(IntNode)
method as well. -
set
Description copied from class:IntNode
Creates a nested copy of this Node, any child nodes are copied using theIntNode.copy()
method. This will detach this node from its parent, but does not attach it to the parent of node being copied. TheIntNode.parts
are copied using theIntNodePart.copy()
method. Note that that method copies the material and nodes (bones) by reference. If you intend to use this node in a different node tree (e.g. a different Model or ModelInstance) then you will need to update these references afterwards.Override this method in your custom Node class to copy any additional fields you've added.
-