org.xith3d.physics.util
Interface Placeable

All Known Subinterfaces:
Collideable, CollideableGroup, ListeningPlaceable
All Known Implementing Classes:
Body, BoxCollideable, CapsuleCollideable, CollideableBase, CollideableGroupBase, CylinderCollideable, PlaceableImpl, PlaneCollideable, RayCollideable, SphereCollideable, TriMeshCollideable

public interface Placeable

Placeable object : you can get/set Position and Rotation


Method Summary
 org.openmali.vecmath2.Tuple3f getPosition()
           
 void getPosition(org.openmali.vecmath2.Tuple3f pos)
          Writes the position of this Placeable object to the given Tuple3f.
 org.openmali.vecmath2.Tuple3f getRotation()
           
 void getRotation(org.openmali.vecmath2.Tuple3f rot)
          Writes the rotation, in Euler angles (degrees) of this Placeable object in the given Tuple3f.
 org.openmali.vecmath2.Matrix3f getRotationMatrix()
           
 void getRotationMatrix(org.openmali.vecmath2.Matrix3f rot)
          Writes the rotation, as a 3x3 rotation Matrix, of this Placeable object in the given Matrix3f.
 void setPosition(float posX, float posY, float posZ)
          Sets the position of this Placeable object.
 void setPosition(org.openmali.vecmath2.Tuple3f pos)
          Sets the position of this Placeable object.
 void setRotation(float rotX, float rotY, float rotZ)
          Sets the rotation of this object, in Euler angles.
 void setRotation(org.openmali.vecmath2.Tuple3f rot)
          Sets the rotation of this object, in Euler angles (degrees)
 void setRotationMatrix(org.openmali.vecmath2.Matrix3f rot)
          Sets the rotation Matrix of this object.
 

Method Detail

setPosition

void setPosition(float posX,
                 float posY,
                 float posZ)
Sets the position of this Placeable object.


setPosition

void setPosition(org.openmali.vecmath2.Tuple3f pos)
Sets the position of this Placeable object.

Parameters:
pos -

getPosition

org.openmali.vecmath2.Tuple3f getPosition()
Returns:
The position of this Placeable object

getPosition

void getPosition(org.openmali.vecmath2.Tuple3f pos)
Writes the position of this Placeable object to the given Tuple3f.

Parameters:
pos - The Tuple3f to put the pos into

setRotation

void setRotation(float rotX,
                 float rotY,
                 float rotZ)
Sets the rotation of this object, in Euler angles.

Parameters:
rotX - The x-rotation of this object
rotY - The y-rotation of this object
rotZ - The z-rotation of this object

setRotation

void setRotation(org.openmali.vecmath2.Tuple3f rot)
Sets the rotation of this object, in Euler angles (degrees)

Parameters:
rot - The rotation, in Euler angles (degrees) of this Placeable object

getRotation

org.openmali.vecmath2.Tuple3f getRotation()
Returns:
The rotation, in Euler angles (degrees) of this Placeable object.

getRotation

void getRotation(org.openmali.vecmath2.Tuple3f rot)
Writes the rotation, in Euler angles (degrees) of this Placeable object in the given Tuple3f.

Parameters:
rot -

setRotationMatrix

void setRotationMatrix(org.openmali.vecmath2.Matrix3f rot)
Sets the rotation Matrix of this object.

Parameters:
rot - The rotation, as a 3x3 rotation Matrix, of this Placeable object

getRotationMatrix

org.openmali.vecmath2.Matrix3f getRotationMatrix()
Returns:
The rotation, as a 3x3 rotation Matrix, of this Placeable object.

getRotationMatrix

void getRotationMatrix(org.openmali.vecmath2.Matrix3f rot)
Writes the rotation, as a 3x3 rotation Matrix, of this Placeable object in the given Matrix3f.

Parameters:
rot -