net.java.dev.joode.geom
Class GeomTransform
java.lang.Object
net.java.dev.joode.geom.Geom
net.java.dev.joode.geom.GeomTransform
- All Implemented Interfaces:
- java.io.Serializable, SimState
public class GeomTransform
- extends Geom
- Author:
- Harald Dietrich
- See Also:
- Serialized Form
|
Field Summary |
Vector3 |
final_pos
cached final object position (body tx + relative tx). |
Matrix3 |
final_R
cached final object rotation (body tx + relative tx). |
| Fields inherited from class net.java.dev.joode.geom.Geom |
aabb, AABB_MAX_X, AABB_MAX_Y, AABB_MAX_Z, AABB_MIN_X, AABB_MIN_Y, AABB_MIN_Z, body, category_bits, collide_bits, dBoxClass, dCapsuleClass, dCircle, dConvex, dCylinderClass, dFirstSpaceClass, dFirstUserClass, dGeomNumClasses, dGeomTransformClass, dHashSpaceClass, dLastSpaceClass, dLastUserClass, dMaxUserClasses, dOctTreeSpaceClass, dPlaneClass, dQuadTreeSpaceClass, dRayClass, dRectangle, dSimpleSpaceClass, dSphereClass, dTriMeshClass, GEOM_AABB_BAD, GEOM_DIRTY, GEOM_ENABLED, GEOM_PLACEABLE, gflags, lpos, parent_space, pos, R, RAY_BACKFACECULL, RAY_CLOSEST_HIT, RAY_FIRSTCONTACT, tmpq, type |
| Methods inherited from class net.java.dev.joode.geom.Geom |
AABBTest, clonePartialGeom, getAABB, getUserData, isEnabled, recomputeAABB, setBody, setPosition, setQuaternion, setQuaternion, setRotation, setUserData |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
final_pos
public Vector3 final_pos
- cached final object position (body tx + relative tx). this is set by
computeAABB(), and it is valid while the AABB is valid.
final_R
public Matrix3 final_R
- cached final object rotation (body tx + relative tx). this is set by
computeAABB(), and it is valid while the AABB is valid.
GeomTransform
public GeomTransform(Space space,
Geom obj)
getGeom
public Geom getGeom()
isCleanup
public boolean isCleanup()
setCleanup
public void setCleanup(boolean cleanup)
isInfoMode
public boolean isInfoMode()
setInfoMode
public void setInfoMode(boolean infomode)
computeAABB
public void computeAABB()
- Description copied from class:
Geom
- compute the AABB for this object and put it in aabb. this function always
performs a fresh computation, it does not inspect the GEOM_AABB_BAD flag.
- Specified by:
computeAABB in class Geom
computeFinalTx
public void computeFinalTx()
destroy
public void destroy()
- Description copied from class:
Geom
- destroy a geom, removing it from any space it is in first. This one
function destroys a geom of any type, but to create a geom you must call
a creation function for that type.
When a space is destroyed, if
its cleanup mode is true (the default) then all the geoms in that space are
automatically destroyed as well.
- Overrides:
destroy in class Geom
cloneState
public GeomTransform cloneState(ClonedReferences util)
- Description copied from interface:
SimState
deep clones the state object, any references to other SimState objects
should be cloned and assigned to the clone via the ClonedReferences util object.
The util object ensures that multiple clones of the same object are not
performed during a clone operation.
- Parameters:
util - instanciate a new one if top level cloning