|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jme3.scene.control.AbstractControl
com.jme3.animation.SkeletonControl
public class SkeletonControl
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
Field Summary |
---|
Fields inherited from class com.jme3.scene.control.AbstractControl |
---|
enabled, spatial |
Constructor Summary | |
---|---|
SkeletonControl()
Serialization only. |
|
SkeletonControl(Skeleton skeleton)
Creates a skeleton control. |
Method Summary | |
---|---|
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. |
protected void |
controlRender(RenderManager rm,
ViewPort vp)
To be implemented in subclass. |
protected void |
controlUpdate(float tpf)
To be implemented in subclass. |
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)
|
Methods inherited from class com.jme3.scene.control.AbstractControl |
---|
getSpatial, isEnabled, render, setEnabled, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SkeletonControl()
public SkeletonControl(Skeleton skeleton)
skeleton
- the skeletonMethod Detail |
---|
public void setSpatial(Spatial spatial)
setSpatial
in interface Control
setSpatial
in class AbstractControl
spatial
- the spatial to be controlled. This should not be called
from user code.protected void controlRender(RenderManager rm, ViewPort vp)
AbstractControl
controlRender
in class AbstractControl
protected void controlUpdate(float tpf)
AbstractControl
controlUpdate
in class AbstractControl
public Control cloneForSpatial(Spatial spatial)
Control
cloneForSpatial
in interface Control
public Node getAttachmentsNode(java.lang.String boneName)
boneName
- the name of the bone
public Skeleton getSkeleton()
public Mesh[] getTargets()
public void write(JmeExporter ex) throws java.io.IOException
write
in interface Savable
write
in class AbstractControl
java.io.IOException
public void read(JmeImporter im) throws java.io.IOException
read
in interface Savable
read
in class AbstractControl
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |