hmi.elckerlyc.world
Class WorldObject

java.lang.Object
  extended by hmi.elckerlyc.world.WorldObject

public class WorldObject
extends Object

Contains an entity in the world that can be pointed at, talked about etc.

Author:
welberge

Field Summary
private  VJoint joint
           
private  float[] mTemp1
           
private  float[] trTemp
           
private  float[] trTempToParent
           
 
Constructor Summary
WorldObject(VJoint vj)
           
 
Method Summary
 VJoint getJoint()
           
 void getTranslation(float[] tr, VJoint vj)
          Get the position of the world object in the coordinate system of vj.
 void getTranslation2(float[] tr, VJoint vj)
          Get the position of the world object in the coordinate system of vj, minus the rotation of vj.
 void getWorldTranslation(float[] tr)
          Get the world position of the object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

joint

private VJoint joint

mTemp1

private float[] mTemp1

trTemp

private float[] trTemp

trTempToParent

private float[] trTempToParent
Constructor Detail

WorldObject

public WorldObject(VJoint vj)
Method Detail

getWorldTranslation

public void getWorldTranslation(float[] tr)
Get the world position of the object

Parameters:
tr - output: the world position of the object

getTranslation

public void getTranslation(float[] tr,
                           VJoint vj)
Get the position of the world object in the coordinate system of vj. This joint and vj are assumed to be in the same joint tree, but can be in different branches of the tree.

Parameters:
tr - output: the position of the world object

getTranslation2

public void getTranslation2(float[] tr,
                            VJoint vj)
Get the position of the world object in the coordinate system of vj, minus the rotation of vj. This joint and vj are assumed to be in the same joint tree, but can be in different branches of the tree.

Parameters:
tr - output: the position of the world object

getJoint

public VJoint getJoint()
Returns:
the joint