com.jme3.scene.plugins.blender.animations
Class CalculationBone
java.lang.Object
com.jme3.scene.Spatial
com.jme3.scene.Node
com.jme3.scene.plugins.blender.animations.CalculationBone
- All Implemented Interfaces:
- CloneableSmartAsset, Collidable, Savable, java.lang.Cloneable
public class CalculationBone
- extends Node
The purpose of this class is to imitate bone's movement when calculating inverse kinematics.
Fields inherited from class com.jme3.scene.Spatial |
batchHint, controls, cullHint, frustrumIntersects, key, localLights, localTransform, name, parent, queueBucket, queueDistance, refreshFlags, RF_BOUND, RF_LIGHTLIST, RF_TRANSFORM, shadowMode, userData, worldBound, worldLights, worldTransform |
Methods inherited from class com.jme3.scene.Node |
attachChildAt, breadthFirstTraversal, clone, collideWith, deepClone, depthFirstTraversal, descendantMatches, descendantMatches, descendantMatches, detachAllChildren, detachChild, detachChildAt, detachChildNamed, getChild, getChild, getChildIndex, getChildren, getQuantity, getTriangleCount, getVertexCount, hasChild, read, setLightListRefresh, setLodLevel, setMaterial, setModelBound, setTransformRefresh, swapChildren, updateGeometricState, updateLogicalState, updateModelBound, updateWorldBound, write |
Methods inherited from class com.jme3.scene.Spatial |
addControl, addLight, breadthFirstTraversal, center, checkCulling, clone, getBatchHint, getControl, getControl, getCullHint, getKey, getLastFrustumIntersection, getLocalBatchHint, getLocalCullHint, getLocalLightList, getLocalQueueBucket, getLocalRotation, getLocalScale, getLocalShadowMode, getLocalToWorldMatrix, getLocalTransform, getLocalTranslation, getName, getNumControls, getParent, getQueueBucket, getShadowMode, getUserData, getUserDataKeys, getWorldBound, getWorldLightList, getWorldRotation, getWorldScale, getWorldTransform, getWorldTranslation, hasAncestor, localToWorld, lookAt, matches, move, move, removeControl, removeControl, removeFromParent, removeLight, rotate, rotate, rotateUpTo, runControlRender, scale, scale, setBatchHint, setBoundRefresh, setCullHint, setKey, setLastFrustumIntersection, setLocalRotation, setLocalRotation, setLocalScale, setLocalScale, setLocalScale, setLocalTransform, setLocalTranslation, setLocalTranslation, setName, setParent, setQueueBucket, setShadowMode, setUserData, updateWorldLightList, updateWorldTransforms, worldToLocal |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
CalculationBone
public CalculationBone(Bone bone,
int boneFramesCount)
CalculationBone
public CalculationBone(Bone bone,
BoneTrack track)
- Constructor. Stores the track, starting transformation and sets the transformation to the starting positions.
- Parameters:
bone
- the bone this class will imitatetrack
- the bone's tracks
getBoneFramesCount
public int getBoneFramesCount()
getEndPoint
public Vector3f getEndPoint()
- This method returns the end point of the bone. If the bone has parent it is calculated from the start point
of parent to the start point of this bone. If the bone doesn't have a parent the end location is considered
to be 1 point up along Y axis (scale is applied if set to != 1.0);
- Returns:
- the end point of this bone
reset
public void reset()
- This method resets the calculation bone to the starting position.
attachChild
public int attachChild(Spatial child)
- Description copied from class:
Node
attachChild
attaches a child to this node. This node
becomes the child's parent. The current number of children maintained is
returned.
If the child already had a parent it is detached from that former parent.
- Overrides:
attachChild
in class Node
- Parameters:
child
- the child to attach to this node.
- Returns:
- the number of children maintained by this node.
rotate
public Spatial rotate(Quaternion rot,
int frame)
applyCalculatedTracks
public void applyCalculatedTracks()
toString
public java.lang.String toString()
- Description copied from class:
Spatial
- Returns the Spatial's name followed by the class of the spatial
Example: "MyNode (com.jme3.scene.Spatial)
- Overrides:
toString
in class Spatial
- Returns:
- Spatial's name followed by the class of the Spatial