Class NodePart
- java.lang.Object
-
- com.badlogic.gdx.graphics.g3d.model.NodePart
-
public class NodePart extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description Matrix4[]
bones
The current transformation (relative to the bind pose) of each bone, may be null.boolean
enabled
true by default.ArrayMap<Node,Matrix4>
invBoneBindTransforms
Mapping to each bone (node) and the inverse transform of the bind pose.Material
material
The Material used to render themeshPart
.MeshPart
meshPart
The MeshPart (shape) to render.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NodePart
copy()
protected NodePart
set(NodePart other)
Renderable
setRenderable(Renderable out)
Convenience method to set the material, mesh, meshPartOffset, meshPartSize, primitiveType and bones members of the specified Renderable.
-
-
-
Field Detail
-
meshPart
public MeshPart meshPart
The MeshPart (shape) to render. Must not be null.
-
invBoneBindTransforms
public ArrayMap<Node,Matrix4> invBoneBindTransforms
Mapping to each bone (node) and the inverse transform of the bind pose. Will be used to fill thebones
array. May be null.
-
bones
public Matrix4[] bones
The current transformation (relative to the bind pose) of each bone, may be null. When the part is skinned, this will be updated by a call toModelInstance.calculateTransforms()
. Do not set or change this value manually.
-
enabled
public boolean enabled
true by default. If set to false, this part will not participate in rendering and bounding box calculation.
-
-
Method Detail
-
setRenderable
public Renderable setRenderable(Renderable out)
Convenience method to set the material, mesh, meshPartOffset, meshPartSize, primitiveType and bones members of the specified Renderable. The other member of the providedRenderable
remain untouched. Note that the material, mesh and bones members are referenced, not copied. Any changes made to those objects will be reflected in both the NodePart and Renderable object.- Parameters:
out
- The Renderable of which to set the members to the values of this NodePart.
-
copy
public NodePart copy()
-
-