/** * <code>updateWorldBound</code> updates the bounding volume that contains this geometry. The * location of the geometry is based on the location of all this node's parents. * * @see com.jme.scene.Spatial#updateWorldBound() */ public void updateWorldBound() { if (target.getModelBound() != null) { worldBound = target .getModelBound() .transform( parentGeom.getWorldRotation(), parentGeom.getWorldTranslation(), parentGeom.getWorldScale(), worldBound); } }
/** returns the model bound of the target object. */ public BoundingVolume getModelBound() { return target.getModelBound(); }
/** * <code>updateBound</code> recalculates the bounding object assigned to the geometry. This resets * it parameters to adjust for any changes to the vertex information. */ public void updateModelBound() { if (target.getModelBound() != null) { target.updateModelBound(); updateWorldBound(); } }