|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectespresso3d.engine.base.E3DEngineItem
espresso3d.engine.renderer.base.E3DRenderable
espresso3d.engine.world.sector.actor.skeleton.E3DBone
| Constructor Summary | |
E3DBone(E3DBone toCopyBone)
|
|
E3DBone(E3DEngine engine,
java.lang.String boneID,
E3DVector3F startPosition)
|
|
| Method Summary | |
void |
attachBone(E3DBone bone)
Attach a child bone to this bone. |
void |
attachVertex(E3DVertex vertex)
Attach a vertex to this bone |
E3DBone |
findBoneByID(java.lang.String boneID)
Searches this and all sub-bones for the correct bone with ID == boneID |
java.util.ArrayList |
getAttachedVertices()
|
java.lang.String |
getBoneID()
|
java.util.HashMap |
getChildBones()
|
E3DVector3F |
getCurrentPosition()
|
E3DBone |
getParentBone()
|
E3DSkeleton |
getSkeleton()
|
E3DVector3F |
getStartPosition()
|
void |
render()
|
void |
resetAll()
This will reset all animation for the bone and all child bones recursively. |
void |
rotateBoneAroundParent(double angle)
This will rotate a bone and all attached vertices around its parent's joint. |
void |
rotateBoneAroundVec(double angle,
E3DVector3F aroundVec)
This will rotate a bone and all child bones angle radian amount around aroundVec. |
void |
setAttachedVertices(java.util.ArrayList attachedVertices)
|
void |
setSkeleton(E3DSkeleton skeleton)
|
void |
translateBone(E3DVector3F translationAmt)
Translate the bone and all attached vertices with the bone |
void |
translateBoneWithoutVertices(E3DVector3F translationAmt)
Translates a bone without actually translating linked vertices. |
| Methods inherited from class espresso3d.engine.renderer.base.E3DRenderable |
getBlendMode, getKey, getRenderMode, initCorrectGeometryRenderer, isKeyChanged, setBlendMode, setKeyChanged, setRenderMode |
| Methods inherited from class espresso3d.engine.base.E3DEngineItem |
getEngine, setEngine |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public E3DBone(E3DEngine engine,
java.lang.String boneID,
E3DVector3F startPosition)
public E3DBone(E3DBone toCopyBone)
| Method Detail |
public void render()
render in class E3DRenderablepublic void attachVertex(E3DVertex vertex)
vertex - public void attachBone(E3DBone bone)
public void rotateBoneAroundParent(double angle)
public void rotateBoneAroundVec(double angle,
E3DVector3F aroundVec)
angle - aroundVec - public void translateBone(E3DVector3F translationAmt)
translationAmt - public void translateBoneWithoutVertices(E3DVector3F translationAmt)
translationAmt - public void resetAll()
public java.util.ArrayList getAttachedVertices()
public void setAttachedVertices(java.util.ArrayList attachedVertices)
public java.lang.String getBoneID()
public java.util.HashMap getChildBones()
public E3DBone getParentBone()
public E3DSkeleton getSkeleton()
public void setSkeleton(E3DSkeleton skeleton)
public E3DVector3F getCurrentPosition()
public E3DVector3F getStartPosition()
public E3DBone findBoneByID(java.lang.String boneID)
boneID -
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||