Class NodePlus
java.lang.Object
gaiasky.render.gdx.model.IntNode
gaiasky.render.gdx.model.gltf.scene3d.model.NodePlus
-
Field Summary
FieldsModifier and TypeFieldDescriptioncom.badlogic.gdx.utils.Array<String> Optional morph target names (e.g.Null if no morph targets.Fields inherited from class IntNode
globalTransform, id, inheritTransform, isAnimated, localTransform, parent, parts, rotation, scale, translationModifier and TypeFieldDescriptionfinal com.badlogic.gdx.math.Matrix4the global transform, product of local transform and transform of the parent node, calculated viaIntNode.calculateWorldTransform()the id, may be null, FIXME is this unique?booleanWhether this node should inherit the transformation of its parent node, defaults to true.booleanWhether this node is currently being animated, if so the translation, rotation and scale values are not used.final com.badlogic.gdx.math.Matrix4the local transform, based on translation/rotation/scale (IntNode.calculateLocalTransform()) or any applied animationprotected IntNodecom.badlogic.gdx.utils.Array<IntNodePart> final com.badlogic.gdx.math.Quaternionthe rotation, relative to the parent, not modified by animationsfinal com.badlogic.gdx.math.Vector3the scale, relative to the parent, not modified by animationsfinal com.badlogic.gdx.math.Vector3the translation, relative to the parent, not modified by animations -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class IntNode
addChild, addChildren, attachTo, calculateBoneTransforms, calculateBoundingBox, calculateBoundingBox, calculateLocalTransform, calculateTransforms, calculateWorldTransform, detach, extendBoundingBox, extendBoundingBox, getChild, getChild, getChildCount, getChildren, getNode, getParent, hasChildren, hasParent, insertChild, insertChildren, removeChildModifier and TypeMethodDescription<T extends IntNode>
intaddChild(T child) Adds the specified node as the currently last child of this node.<T extends IntNode>
intaddChildren(Iterable<T> nodes) Adds the specified nodes as the currently last child of this node.<T extends IntNode>
voidattachTo(T parent) Adds this node as child to specified parent Node, synonym for:parent.addChild(this)voidcalculateBoneTransforms(boolean recursive) com.badlogic.gdx.math.collision.BoundingBoxcalculateBoundingBox(com.badlogic.gdx.math.collision.BoundingBox out) Calculate the bounding box of this Node.com.badlogic.gdx.math.collision.BoundingBoxcalculateBoundingBox(com.badlogic.gdx.math.collision.BoundingBox out, boolean transform) Calculate the bounding box of this Node.com.badlogic.gdx.math.Matrix4Calculates the local transform based on the translation, scale and rotationvoidcalculateTransforms(boolean recursive) Calculates the local and world transform of this node and optionally all its children.com.badlogic.gdx.math.Matrix4Calculates the world transform; the product of local transform and the parent's world transform.voiddetach()Removes this node from its current parent, if any.com.badlogic.gdx.math.collision.BoundingBoxextendBoundingBox(com.badlogic.gdx.math.collision.BoundingBox out) Extends the bounding box with the bounds of this Node.com.badlogic.gdx.math.collision.BoundingBoxextendBoundingBox(com.badlogic.gdx.math.collision.BoundingBox out, boolean transform) Extends the bounding box with the bounds of this Node.getChild(int index) intstatic IntNodegetNode(com.badlogic.gdx.utils.Array<IntNode> nodes, String id, boolean recursive, boolean ignoreCase) Helper method to recursive fetch a node from an arraybooleanboolean<T extends IntNode>
intinsertChild(int index, T child) Insert the specified node as child of this node at the specified index.<T extends IntNode>
intinsertChildren(int index, Iterable<T> nodes) Insert the specified nodes as children of this node at the specified index.<T extends IntNode>
booleanremoveChild(T child) Removes the specified node as child of this node.
-
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:IntNodeCreates a nested copy of this Node, any child nodes are copied using this method as well. TheIntNode.partsare 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:IntNodeCreates 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.partsare 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.
-