Modifier and Type | Field and 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 the
meshPart . |
MeshPart |
meshPart
The MeshPart (shape) to render.
|
Constructor and Description |
---|
NodePart()
Construct a new NodePart with null values.
|
NodePart(MeshPart meshPart,
Material material)
|
Modifier and Type | Method and Description |
---|---|
NodePart |
copy() |
Renderable |
setRenderable(Renderable out)
Convenience method to set the material, mesh, meshPartOffset, meshPartSize, primitiveType and bones members of the specified
Renderable.
|
public MeshPart meshPart
public ArrayMap<Node,Matrix4> invBoneBindTransforms
bones
array. May
be null.public Matrix4[] bones
ModelInstance.calculateTransforms()
. Do not set or change this value manually.public boolean enabled
public Renderable setRenderable(Renderable out)
Renderable
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.out
- The Renderable of which to set the members to the values of this NodePart.public NodePart copy()
Copyright © 2017. All rights reserved.