public class Bone
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.Integer,Matrix4f>> |
animatedTransforms |
java.util.ArrayList<Bone> |
children |
Bone |
copy |
Matrix4f |
difference |
int |
ID |
Matrix4f |
modified
current programmatically-modified transform values, applied into a matrix
|
java.lang.String |
name |
SmdModel |
owner |
Bone |
parent |
Matrix4f |
prevInverted
the real transform values from the previous frame, inverted;
|
Matrix4f |
rest
At-rest location & rotation
|
Matrix4f |
restInverted
At-rest location & rotation, inverted
|
java.util.HashMap<DeformVertex,java.lang.Float> |
verts |
Constructor and Description |
---|
Bone(Bone b,
Bone parent,
SmdModel owner) |
Bone(java.lang.String name,
int ID,
Bone parent,
SmdModel owner) |
Modifier and Type | Method and Description |
---|---|
void |
addChild(Bone child) |
void |
addVertex(DeformVertex v,
float weight) |
void |
applyModified() |
protected Matrix4f |
initModified() |
void |
invertRestMatrix() |
boolean |
isDummy() |
void |
preloadAnimation(AnimFrame key,
Matrix4f animated) |
void |
reformChildren() |
void |
reset() |
void |
setChildren(Bone b,
java.util.ArrayList<Bone> bones) |
void |
setModified() |
void |
setRest(Matrix4f resting) |
public Bone copy
public java.lang.String name
public int ID
public Bone parent
public SmdModel owner
public Matrix4f rest
public Matrix4f restInverted
public Matrix4f modified
public Matrix4f difference
public Matrix4f prevInverted
public java.util.ArrayList<Bone> children
public java.util.HashMap<DeformVertex,java.lang.Float> verts
public java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.Integer,Matrix4f>> animatedTransforms
public boolean isDummy()
public void setRest(Matrix4f resting)
public void addChild(Bone child)
public void addVertex(DeformVertex v, float weight)
public void reformChildren()
public void invertRestMatrix()
public void reset()
public void setModified()
protected Matrix4f initModified()
public void applyModified()