|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Collideable
A Collideable is an object, which can collide with others objects.
CollisionEngine| Method Summary | |
|---|---|
Node |
getBaseGFX()
|
Body |
getBody()
|
Node |
getDebugGFX()
|
CollisionEngine |
getEngine()
|
java.lang.String |
getInfo()
|
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 rot)
Writes the rotation, as a 3x3 rotation Matrix, of this Placeable object in the given Matrix3f. |
java.lang.String |
getType()
|
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. |
boolean |
isEnabled()
|
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. |
void |
setBody(Body body)
Sets the Body, this Collideable is attached to. |
void |
setEnabled(boolean enabled)
Enables or disables this Collideable. |
void |
setPosition(float posX,
float posY,
float posZ)
Sets the position, in local coordinates of this Placeable object. |
void |
setPosition(org.openmali.vecmath2.Tuple3f pos)
Sets the position, in local coordinates of this Placeable object To get world coordinates, 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 rotX,
float rotY,
float rotZ)
Sets the rotation (in local coordinates) of this Collideable, local coordinates. |
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 |
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. |
| Methods inherited from interface org.jagatoo.datatypes.NamableObject |
|---|
setName |
| Methods inherited from interface org.jagatoo.datatypes.NamedObject |
|---|
getName |
| Method Detail |
|---|
java.lang.String getType()
java.lang.String getInfo()
CollisionEngine getEngine()
Node getBaseGFX()
getDebugGFX()Node getDebugGFX()
getBaseGFX()CollideableGroup getParent()
null if it has no parent.
nullvoid setBody(Body body)
body - Body getBody()
void setUserObject(java.lang.Object userObject)
userObject - java.lang.Object getUserObject()
void setEnabled(boolean enabled)
Collideable.
setEnabled in interface org.jagatoo.datatypes.Enableableenabled - boolean isEnabled()
isEnabled in interface org.jagatoo.datatypes.EnableableCollideable is enabled.org.openmali.vecmath2.Point3f getPosition()
getPosition in interface PlaceablegetWorldPos()void getPosition(org.openmali.vecmath2.Tuple3f pos)
getWorldPos().
getPosition in interface Placeablepos - The Tuple3f to put the pos intovoid setPosition(org.openmali.vecmath2.Tuple3f pos)
getWorldPos().
setPosition in interface Placeablepos -
void setPosition(float posX,
float posY,
float posZ)
getWorldPos().
setPosition in interface Placeableorg.openmali.vecmath2.Tuple3f getRotation()
getRotation in interface PlaceablegetWorldRot().void getRotation(org.openmali.vecmath2.Tuple3f rot)
getWorldRot()
getRotation in interface Placeableorg.openmali.vecmath2.Matrix3f getRotationMatrix()
getRotationMatrix in interface PlaceablegetWorldRotMat().void getRotationMatrix(org.openmali.vecmath2.Matrix3f rot)
getWorldRotMat().
getRotationMatrix in interface Placeablevoid setRotation(org.openmali.vecmath2.Tuple3f rot)
setRotation in interface Placeablerot - The rotation, in Euler angles (degrees) of
this Placeable objectvoid setRotationMatrix(org.openmali.vecmath2.Matrix3f rot)
setRotationMatrix in interface Placeablerot - The rotation, as a 3x3 rotation Matrix,
of this Placeable object
void setRotation(float rotX,
float rotY,
float rotZ)
setRotation in interface PlaceablerotX - The x-rotation of the CollideablerotY - The y-rotation of the CollideablerotZ - The z-rotation of the Collideablevoid setPositionX(float x)
x - void setPositionY(float y)
y - void setPositionZ(float z)
z - void setRotationX(float x)
x - void setRotationY(float y)
y - void setRotationZ(float z)
z - org.openmali.vecmath2.Point3f getWorldPos()
void getWorldPos(org.openmali.vecmath2.Tuple3f pos)
pos - The Tuple3f to write in.org.openmali.vecmath2.Tuple3f getWorldRot()
void getWorldRot(org.openmali.vecmath2.Tuple3f rot)
rot - org.openmali.vecmath2.Matrix3f getWorldRotMat()
void getWorldRotMat(org.openmali.vecmath2.Matrix3f rot)
rot - void recomputeChildrenWorldCoords(boolean applyToImplementation)
applyToImplementation -
void recomputeWorldCoords(boolean childrenToo,
boolean applyToImplementation)
childrenToo - applyToImplementation -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||