org.xith3d.physics.collision.collideable
Class PlaneCollideable

java.lang.Object
  extended by org.xith3d.physics.collision.CollideableBase
      extended by org.xith3d.physics.collision.collideable.PlaneCollideable
All Implemented Interfaces:
org.jagatoo.datatypes.Enableable, org.jagatoo.datatypes.NamableObject, org.jagatoo.datatypes.NamedObject, Collideable, Placeable

public abstract class PlaneCollideable
extends CollideableBase

A plane collideable.


Constructor Summary
PlaneCollideable(CollisionEngine eng, float a, float b, float c, float d)
          Creates a new Plane Collideable.
PlaneCollideable(CollisionEngine eng, org.openmali.vecmath2.Vector3f normal, float d)
          Creates a new Plane Collideable.
PlaneCollideable(CollisionEngine eng, org.openmali.vecmath2.Vector3f normal, org.openmali.vecmath2.Point3f point)
          Creates a new Plane Collideable.
 
Method Summary
 Quad getBaseGFX()
           
 float getD()
           
 Quad getDebugGFX()
           
static Appearance getDefaultAppearance()
           
 java.lang.String getInfo()
           
 org.openmali.vecmath2.Vector3f getNormal()
           
 java.lang.String getType()
           
 void setD(float d)
          Sets the d-parameter of the plane.
static void setDefaultAppearance(Appearance app)
           
static void setDefaultAppearance(java.lang.String texture)
           
static void setDefaultAppearance(Texture texture)
           
 void setNormal(org.openmali.vecmath2.Vector3f normal)
          Changes the normal of this plane collideable.
 
Methods inherited from class org.xith3d.physics.collision.CollideableBase
applyWorldPosition, applyWorldRotation, getBody, getEngine, getName, getParent, getPosition, getPosition, getRotation, getRotation, getRotationMatrix, getRotationMatrix, getUserObject, getWorldPos, getWorldPos, getWorldRot, getWorldRot, getWorldRotMat, getWorldRotMat, recomputeChildrenWorldCoords, recomputeWorldCoords, recomputeWorldPos, recomputeWorldRotMat, setBody, setName, setParent, setPosition, setPosition, setPosition, setPositionX, setPositionY, setPositionZ, setRotation, setRotation, setRotation, setRotationMatrix, setRotationMatrix, setRotationX, setRotationY, setRotationZ, setUserObject, 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
isEnabled, setEnabled
 

Constructor Detail

PlaneCollideable

public PlaneCollideable(CollisionEngine eng,
                        float a,
                        float b,
                        float c,
                        float d)
Creates a new Plane Collideable.

Parameters:
eng -
a -
b -
c -
d -

PlaneCollideable

public PlaneCollideable(CollisionEngine eng,
                        org.openmali.vecmath2.Vector3f normal,
                        float d)
Creates a new Plane Collideable.

Parameters:
eng -
normal -
d -

PlaneCollideable

public PlaneCollideable(CollisionEngine eng,
                        org.openmali.vecmath2.Vector3f normal,
                        org.openmali.vecmath2.Point3f point)
Creates a new Plane Collideable.

Parameters:
eng -
normal -
point -
Method Detail

setDefaultAppearance

public static void setDefaultAppearance(Appearance app)

setDefaultAppearance

public static void setDefaultAppearance(Texture texture)

setDefaultAppearance

public static void setDefaultAppearance(java.lang.String texture)

getDefaultAppearance

public static Appearance getDefaultAppearance()

getInfo

public final java.lang.String getInfo()
Returns:
a small description of how is this geom, its exact shape, a brief human-readable description of what can be adjusted

getType

public final java.lang.String getType()
Returns:
the name of the Geom, that is, the one which is used to refer to it in CollisionEngine. All camel-case, please ! (e.g. : "Sphere")

getBaseGFX

public Quad getBaseGFX()
Returns:
a "base" GFX (can be used as a start, then the users adjusts himself e.g. the Material or even apply a deformation to the Shape) The only *rule* for this object is that it should extend org.xith3d.scenegraph.Node so that it can be added to the scenegraph. So it can be e.g. a Shape3D, a Group
See Also:
Collideable.getDebugGFX()

getDebugGFX

public Quad getDebugGFX()
Returns:
a "debug" GFX (probably wireframe, and maybe bounds displayed, and so on) The only *rule* for this object is that it should extend org.xith3d.scenegraph.Node so that it can be added to the scenegraph. So it can be e.g. a Shape3D, a Group
See Also:
Collideable.getBaseGFX()

setNormal

public void setNormal(org.openmali.vecmath2.Vector3f normal)
Changes the normal of this plane collideable.

Parameters:
normal -

getNormal

public final org.openmali.vecmath2.Vector3f getNormal()
Returns:
the normal of this plane

setD

public void setD(float d)
Sets the d-parameter of the plane.

Parameters:
d -

getD

public final float getD()
Returns:
the d-parameter of the plane.