|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectcom.jme3.animation.Bone
public final class Bone
Bone
describes a bone in the bone-weight skeletal animation
system. A bone contains a name and an index, as well as relevant
transformation data.
コンストラクタの概要 | |
---|---|
Bone()
Serialization only. |
|
Bone(java.lang.String name)
Creates a new bone with the given name. |
メソッドの概要 | |
---|---|
void |
addChild(Bone bone)
Add a new child to this bone. |
Node |
getAttachmentsNode()
Returns the attachment node. |
java.util.ArrayList<Bone> |
getChildren()
Returns all the children bones of this bone. |
Transform |
getCombinedTransform(Vector3f position,
Quaternion rotation)
Returns the local transform of this bone combined with the given position and rotation |
Vector3f |
getLocalPosition()
Returns the local position of the bone, relative to the parent bone. |
Quaternion |
getLocalRotation()
Returns the local rotation of the bone, relative to the parent bone. |
Vector3f |
getLocalScale()
Returns the local scale of the bone, relative to the parent bone. |
Vector3f |
getModelSpacePosition()
Returns the position of the bone in model space. |
Quaternion |
getModelSpaceRotation()
Returns the rotation of the bone in model space. |
Vector3f |
getModelSpaceScale()
Returns the scale of the bone in model space. |
java.lang.String |
getName()
Returns the name of the bone, set in the constructor. |
Bone |
getParent()
Returns parent bone of this bone, or null if it is a root bone. |
Vector3f |
getWorldBindInversePosition()
Returns the inverse world bind pose position. |
Quaternion |
getWorldBindInverseRotation()
Returns the inverse world bind pose rotation. |
Vector3f |
getWorldBindInverseScale()
Returns the inverse world bind pose scale. |
Vector3f |
getWorldBindPosition()
Returns the world bind pose position. |
Quaternion |
getWorldBindRotation()
Returns the world bind pose rotation. |
Vector3f |
getWorldBindScale()
Returns the world bind pose scale. |
void |
read(JmeImporter im)
|
void |
setBindTransforms(Vector3f translation,
Quaternion rotation,
Vector3f scale)
Sets local bind transform for bone. |
void |
setUserControl(boolean enable)
If enabled, user can control bone transform with setUserTransforms. |
void |
setUserTransforms(Vector3f translation,
Quaternion rotation,
Vector3f scale)
Sets user transform. |
void |
setUserTransformsWorld(Vector3f translation,
Quaternion rotation)
Must update all bones in skeleton for this to work. |
java.lang.String |
toString()
|
void |
updateWorldVectors()
Updates the world transforms for this bone, and, possibly the attach node if not null. |
void |
write(JmeExporter ex)
|
クラス java.lang.Object から継承されたメソッド |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
コンストラクタの詳細 |
---|
public Bone(java.lang.String name)
name
- Name to give to this bonepublic Bone()
メソッドの詳細 |
---|
public java.lang.String getName()
public Bone getParent()
public java.util.ArrayList<Bone> getChildren()
public Vector3f getLocalPosition()
public Quaternion getLocalRotation()
public Vector3f getLocalScale()
public Vector3f getModelSpacePosition()
public Quaternion getModelSpaceRotation()
public Vector3f getModelSpaceScale()
public Vector3f getWorldBindInversePosition()
The bind pose transform of the bone is its "default" transform with no animation applied.
public Quaternion getWorldBindInverseRotation()
The bind pose transform of the bone is its "default" transform with no animation applied.
public Vector3f getWorldBindInverseScale()
The bind pose transform of the bone is its "default" transform with no animation applied.
public Vector3f getWorldBindPosition()
The bind pose transform of the bone is its "default" transform with no animation applied.
public Quaternion getWorldBindRotation()
The bind pose transform of the bone is its "default" transform with no animation applied.
public Vector3f getWorldBindScale()
The bind pose transform of the bone is its "default" transform with no animation applied.
public void setUserControl(boolean enable)
public void addChild(Bone bone)
bone
- The bone to addpublic final void updateWorldVectors()
The world transform of this bone is computed by combining the parent's world transform with this bones' local transform.
public void setUserTransforms(Vector3f translation, Quaternion rotation, Vector3f scale)
public void setUserTransformsWorld(Vector3f translation, Quaternion rotation)
translation
- rotation
- public Transform getCombinedTransform(Vector3f position, Quaternion rotation)
position
- a positionrotation
- a rotationpublic Node getAttachmentsNode()
public void setBindTransforms(Vector3f translation, Quaternion rotation, Vector3f scale)
public java.lang.String toString()
java.lang.Object
内の toString
public void read(JmeImporter im) throws java.io.IOException
Savable
内の read
java.io.IOException
public void write(JmeExporter ex) throws java.io.IOException
Savable
内の write
java.io.IOException
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |