|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.physics.collision.CollideableBase
public abstract class CollideableBase
Common parent (abstract class) for all Collideable Objects.
| Constructor Summary | |
|---|---|
CollideableBase(CollisionEngine engine)
Creates a new CollideableBase. |
|
| Method Summary | |
|---|---|
protected abstract void |
applyWorldPosition(org.openmali.vecmath2.Tuple3f worldPos)
Applies the world-position to the implementation. |
protected abstract void |
applyWorldRotation(org.openmali.vecmath2.Matrix3f worldRot)
Applies the world-rotation to the implementation. |
Body |
getBody()
|
CollisionEngine |
getEngine()
|
java.lang.String |
getName()
|
CollideableGroup |
getParent()
Gets the parent of this Collideable, or null if it has no parent. |
org.openmali.vecmath2.Point3f |
getPosition()
|
void |
getPosition(org.openmali.vecmath2.Tuple3f pos)
Writes the position of this Placeable object to the given Tuple3f, in Local coordinates (e.g. without pos/rot of parents taken into account). |
org.openmali.vecmath2.Tuple3f |
getRotation()
|
void |
getRotation(org.openmali.vecmath2.Tuple3f rot)
Writes the rotation (local coordinates), in Euler angles (degrees) of this Placeable object in the given Tuple3f. |
org.openmali.vecmath2.Matrix3f |
getRotationMatrix()
|
void |
getRotationMatrix(org.openmali.vecmath2.Matrix3f mat)
Writes the rotation, as a 3x3 rotation Matrix, of this Placeable object in the given Matrix3f. |
java.lang.Object |
getUserObject()
|
org.openmali.vecmath2.Point3f |
getWorldPos()
Gets position, in world coordinates, which means, taking into account all transformations from parents, and all. |
void |
getWorldPos(org.openmali.vecmath2.Tuple3f pos)
Writes position to pos, in world coordinates, which means, taking into account all transformations from parents, and all. |
org.openmali.vecmath2.Tuple3f |
getWorldRot()
Gets rotation, in world coordinates, which means, taking into account all transformations from parents, and all. |
void |
getWorldRot(org.openmali.vecmath2.Tuple3f rot)
Writes rotation to rot, in world coordinates, which means, taking into account all transformations from parents, and all. |
org.openmali.vecmath2.Matrix3f |
getWorldRotMat()
Gets rotation, in world coordinates, which means, taking into account all transformations from parents, and all. |
void |
getWorldRotMat(org.openmali.vecmath2.Matrix3f rot)
Writes rotation to rot, in world coordinates, which means, taking into account all transformations from parents, and all. |
void |
recomputeChildrenWorldCoords(boolean applyToImplementation)
Recompute the world coordinates of all children, if and only if this JoodeCollideable is a space. |
void |
recomputeWorldCoords(boolean childrenToo,
boolean applyToImplementation)
Recompute world coordinates, e.g. world position and rotation. |
protected void |
recomputeWorldPos(org.openmali.vecmath2.Point3f worldPos,
boolean applyToImplementation)
Recomputes the World coordinates position. |
protected void |
recomputeWorldRotMat(org.openmali.vecmath2.Matrix3f worldRot,
boolean applyToImplementation)
Recomputes the World coordinates rotation matrix. |
void |
setBody(Body body)
Sets the Body, this Collideable is attached to. |
void |
setName(java.lang.String name)
|
protected void |
setParent(CollideableGroup parent)
Sets this Collideable's parent group. |
void |
setPosition(float x,
float y,
float z)
Sets the position, in local coordinates of this Placeable object. |
void |
setPosition(float x,
float y,
float z,
boolean recomputeWorldCoords)
|
void |
setPosition(org.openmali.vecmath2.Tuple3f pos)
Sets the position, in local coordinates of this Placeable object To get world coordinates, Collideable.getWorldPos(). |
void |
setPositionX(float x)
Sets the X position (in local coordinates) of this Collideable |
void |
setPositionY(float y)
Sets the Y position (in local coordinates) of this Collideable |
void |
setPositionZ(float z)
Sets the Z position (in local coordinates) of this Collideable |
void |
setRotation(float x,
float y,
float z)
Sets the rotation (in local coordinates) of this Collideable, local coordinates. |
void |
setRotation(float x,
float y,
float z,
boolean recomputeWorldCoords)
|
void |
setRotation(org.openmali.vecmath2.Tuple3f rot)
Sets the rotation of this object, in Euler angles (degrees), local coordinates. |
void |
setRotationMatrix(org.openmali.vecmath2.Matrix3f rot)
Sets the rotation Matrix of this object, local coordinates. |
void |
setRotationMatrix(org.openmali.vecmath2.Matrix3f rot,
boolean recomputeWorldCoords)
|
void |
setRotationX(float x)
Sets the X rotation (in local coordinates) of this Collideable |
void |
setRotationY(float y)
Sets the Y rotation (in local coordinates) of this Collideable |
void |
setRotationZ(float z)
Sets the Z rotation (in local coordinates) of this Collideable |
void |
setUserObject(java.lang.Object userObject)
Sets this Collideable's user-object. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.xith3d.physics.collision.Collideable |
|---|
getBaseGFX, getDebugGFX, getInfo, getType, isEnabled, setEnabled |
| Constructor Detail |
|---|
public CollideableBase(CollisionEngine engine)
CollideableBase.
| Method Detail |
|---|
public CollisionEngine getEngine()
getEngine in interface Collideablepublic final void setName(java.lang.String name)
setName in interface org.jagatoo.datatypes.NamableObjectpublic final java.lang.String getName()
getName in interface org.jagatoo.datatypes.NamedObjectpublic final void setUserObject(java.lang.Object userObject)
setUserObject in interface Collideablepublic final java.lang.Object getUserObject()
getUserObject in interface Collideableprotected void setParent(CollideableGroup parent)
parent - public final CollideableGroup getParent()
null if it has no parent.
getParent in interface Collideablenullpublic void setBody(Body body)
setBody in interface Collideablepublic final Body getBody()
getBody in interface Collideable
public void setRotation(float x,
float y,
float z,
boolean recomputeWorldCoords)
public final void setRotation(float x,
float y,
float z)
setRotation in interface CollideablesetRotation in interface Placeablex - The x-rotation of the Collideabley - The y-rotation of the Collideablez - The z-rotation of the Collideablepublic final void setRotation(org.openmali.vecmath2.Tuple3f rot)
setRotation in interface CollideablesetRotation in interface Placeablerot - The rotation, in Euler angles (degrees) of
this Placeable objectpublic final void setRotationX(float x)
setRotationX in interface Collideablepublic final void setRotationY(float y)
setRotationY in interface Collideablepublic final void setRotationZ(float z)
setRotationZ in interface Collideablepublic final org.openmali.vecmath2.Tuple3f getRotation()
getRotation in interface CollideablegetRotation in interface PlaceableCollideable.getWorldRot().public final void getRotation(org.openmali.vecmath2.Tuple3f rot)
Collideable.getWorldRot()
getRotation in interface CollideablegetRotation in interface Placeable
public void setRotationMatrix(org.openmali.vecmath2.Matrix3f rot,
boolean recomputeWorldCoords)
public final void setRotationMatrix(org.openmali.vecmath2.Matrix3f rot)
Collideable
setRotationMatrix in interface CollideablesetRotationMatrix in interface Placeablerot - The rotation, as a 3x3 rotation Matrix,
of this Placeable objectpublic final org.openmali.vecmath2.Matrix3f getRotationMatrix()
getRotationMatrix in interface CollideablegetRotationMatrix in interface PlaceableCollideable.getWorldRotMat().public final void getRotationMatrix(org.openmali.vecmath2.Matrix3f mat)
Collideable.getWorldRotMat().
getRotationMatrix in interface CollideablegetRotationMatrix in interface Placeable
public void setPosition(float x,
float y,
float z,
boolean recomputeWorldCoords)
public final void setPosition(float x,
float y,
float z)
Collideable.getWorldPos().
setPosition in interface CollideablesetPosition in interface Placeablepublic final void setPosition(org.openmali.vecmath2.Tuple3f pos)
Collideable.getWorldPos().
setPosition in interface CollideablesetPosition in interface Placeablepublic final void setPositionX(float x)
setPositionX in interface Collideablepublic final void setPositionY(float y)
setPositionY in interface Collideablepublic final void setPositionZ(float z)
setPositionZ in interface Collideablepublic final org.openmali.vecmath2.Point3f getPosition()
getPosition in interface CollideablegetPosition in interface PlaceableCollideable.getWorldPos()public final void getPosition(org.openmali.vecmath2.Tuple3f pos)
Collideable.getWorldPos().
getPosition in interface CollideablegetPosition in interface Placeablepos - The Tuple3f to put the pos intopublic final org.openmali.vecmath2.Point3f getWorldPos()
getWorldPos in interface Collideablepublic final void getWorldPos(org.openmali.vecmath2.Tuple3f pos)
getWorldPos in interface Collideablepos - The Tuple3f to write in.public final org.openmali.vecmath2.Tuple3f getWorldRot()
getWorldRot in interface Collideablepublic final void getWorldRot(org.openmali.vecmath2.Tuple3f rot)
getWorldRot in interface Collideablepublic final org.openmali.vecmath2.Matrix3f getWorldRotMat()
getWorldRotMat in interface Collideablepublic final void getWorldRotMat(org.openmali.vecmath2.Matrix3f rot)
getWorldRotMat in interface Collideableprotected abstract void applyWorldRotation(org.openmali.vecmath2.Matrix3f worldRot)
worldRot - protected abstract void applyWorldPosition(org.openmali.vecmath2.Tuple3f worldPos)
worldPos -
protected void recomputeWorldRotMat(org.openmali.vecmath2.Matrix3f worldRot,
boolean applyToImplementation)
worldRot - applyToImplementation -
protected void recomputeWorldPos(org.openmali.vecmath2.Point3f worldPos,
boolean applyToImplementation)
worldPos - applyToImplementation - public void recomputeChildrenWorldCoords(boolean applyToImplementation)
recomputeChildrenWorldCoords in interface Collideable
public void recomputeWorldCoords(boolean childrenToo,
boolean applyToImplementation)
recomputeWorldCoords in interface Collideablepublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||