|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectespresso3d.engine.base.E3DEngineItem
espresso3d.engine.renderer.base.E3DRenderable
espresso3d.engine.collision.bounding.E3DBoundingSphere
| Constructor Summary | |
E3DBoundingSphere(E3DBoundingSphere toCopyBoundingSphere)
|
|
E3DBoundingSphere(E3DEngine engine,
double radius)
|
|
| Method Summary | |
void |
centerAroundParentObject()
This will automatically set the position of the bounding object to be that of its parent object |
E3DCollision |
checkLineIntersectionCollision(E3DVector3F startPos,
E3DVector3F endPos)
|
int |
getBoundingSphereType()
|
E3DCollisionDetector |
getCollisionDetector()
Every bounding object must implement this method that takes a list of E3DLine's and returns the closest collision between any of the lines and the bounding object itself, therefore, it must have a collision detector |
E3DOrientation |
getOrientation()
Every bounding object has an orientation (position/rotation). |
E3DCollisionDetectableObject |
getParentObject()
Bounding objects need to have an actor that they are bounding |
double |
getRadius()
|
double |
getSize()
Size of this is 2x the radius |
E3DBoundingObject |
onGetClone()
Returns a clone of the bounding object |
void |
render()
|
void |
scale(double scaleAmt)
Scale the bounding object around its position |
void |
setBoundingSphereType(int boundingSphereType)
|
void |
setParentObject(E3DCollisionDetectableObject parentObject)
Set the parent object of the bounding object. |
void |
setRadius(double radius)
|
void |
setSize(double size)
Set the size of hte bounding object. |
| Methods inherited from class espresso3d.engine.renderer.base.E3DRenderable |
getBlendMode, getKey, getRenderMode, initCorrectGeometryRenderer, isKeyChanged, setBlendMode, setKeyChanged, setRenderMode |
| Methods inherited from class espresso3d.engine.base.E3DEngineItem |
getEngine, setEngine |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public E3DBoundingSphere(E3DEngine engine,
double radius)
public E3DBoundingSphere(E3DBoundingSphere toCopyBoundingSphere)
| Method Detail |
public void render()
render in interface E3DBoundingObjectrender in class E3DRenderablepublic double getRadius()
public void setRadius(double radius)
radius - The radius to set.
public E3DCollision checkLineIntersectionCollision(E3DVector3F startPos,
E3DVector3F endPos)
checkLineIntersectionCollision in interface E3DBoundingObjectstartPos - World coordinate start positionendPos - World coordinate end position
public void centerAroundParentObject()
E3DBoundingObject
centerAroundParentObject in interface E3DBoundingObjectpublic E3DBoundingObject onGetClone()
E3DBoundingObject
onGetClone in interface E3DBoundingObjectpublic int getBoundingSphereType()
public void setBoundingSphereType(int boundingSphereType)
public E3DCollisionDetector getCollisionDetector()
E3DBoundingObject
getCollisionDetector in interface E3DBoundingObjectpublic E3DCollisionDetectableObject getParentObject()
E3DBoundingObject
getParentObject in interface E3DBoundingObjectpublic void setParentObject(E3DCollisionDetectableObject parentObject)
E3DBoundingObject
setParentObject in interface E3DBoundingObjectparentObject - public void scale(double scaleAmt)
E3DBoundingObject
scale in interface E3DBoundingObjectscaleAmt - public void setSize(double size)
E3DBoundingObject
setSize in interface E3DBoundingObjectsize - Total size of the bounding objectpublic double getSize()
getSize in interface E3DBoundingObjectpublic E3DOrientation getOrientation()
E3DBoundingObject
getOrientation in interface E3DBoundingObject
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||