com.jme3.animation
クラス SkeletonControl

java.lang.Object
  上位を拡張 com.jme3.scene.control.AbstractControl
      上位を拡張 com.jme3.animation.SkeletonControl
すべての実装されたインタフェース:
Savable, Control, java.lang.Cloneable

public class SkeletonControl
extends AbstractControl
implements java.lang.Cloneable

The Skeleton control deforms a model according to a skeleton, It handles the computation of the deformation matrices and performs the transformations on the mesh


コンストラクタの概要
SkeletonControl()
          Serialization only.
SkeletonControl(Mesh[] targets, Skeleton skeleton)
          推奨されていません。 
SkeletonControl(Skeleton skeleton)
          Creates a skeleton control.
 
メソッドの概要
 Control cloneForSpatial(Spatial spatial)
          Creates a clone of the Control, the given Spatial is the cloned version of the spatial to which this control is attached to.
 Node getAttachmentsNode(java.lang.String boneName)
           
 Skeleton getSkeleton()
          returns the skeleton of this control
 Mesh[] getTargets()
          returns the targets meshes of this control
 void read(JmeImporter im)
           
 void setSpatial(Spatial spatial)
           
 void write(JmeExporter ex)
           
 
クラス com.jme3.scene.control.AbstractControl から継承されたメソッド
getSpatial, isEnabled, render, setEnabled, update
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

SkeletonControl

public SkeletonControl()
Serialization only. Do not use.


SkeletonControl

public SkeletonControl(Skeleton skeleton)
Creates a skeleton control. The list of targets will be acquired automatically when the control is attached to a node.

パラメータ:
skeleton - the skeleton

SkeletonControl

@Deprecated
public SkeletonControl(Mesh[] targets,
                                  Skeleton skeleton)
推奨されていません。 

Creates a skeleton control.

パラメータ:
targets - the meshes controlled by the skeleton
skeleton - the skeleton
メソッドの詳細

setSpatial

public void setSpatial(Spatial spatial)
定義:
インタフェース Control 内の setSpatial
オーバーライド:
クラス AbstractControl 内の setSpatial
パラメータ:
spatial - the spatial to be controlled. This should not be called from user code.

cloneForSpatial

public Control cloneForSpatial(Spatial spatial)
インタフェース Control の記述:
Creates a clone of the Control, the given Spatial is the cloned version of the spatial to which this control is attached to.

定義:
インタフェース Control 内の cloneForSpatial
戻り値:
A clone of this control for the spatial

getAttachmentsNode

public Node getAttachmentsNode(java.lang.String boneName)
パラメータ:
boneName - the name of the bone
戻り値:
the node attached to this bone

getSkeleton

public Skeleton getSkeleton()
returns the skeleton of this control

戻り値:

getTargets

public Mesh[] getTargets()
returns the targets meshes of this control

戻り値:

write

public void write(JmeExporter ex)
           throws java.io.IOException
定義:
インタフェース Savable 内の write
オーバーライド:
クラス AbstractControl 内の write
例外:
java.io.IOException

read

public void read(JmeImporter im)
          throws java.io.IOException
定義:
インタフェース Savable 内の read
オーバーライド:
クラス AbstractControl 内の read
例外:
java.io.IOException