All Packages Class Hierarchy This Package Previous Next Index
Class java.media.j3d.WakeupOnCollisionExit
java.lang.Object
|
+----java.media.j3d.WakeupCondition
|
+----java.media.j3d.WakeupCriterion
|
+----java.media.j3d.WakeupOnCollisionExit
- public final class WakeupOnCollisionExit
- extends WakeupCriterion
Class specifying a wakeup when the specified object
no longer collides with any other object in the scene graph.
-
USE_BOUNDS
- Use geometric bounds as an approximation in computing collisions.
-
USE_GEOMETRY
- Use geometry in computing collisions.
-
WakeupOnCollisionExit(Bounds)
- Constructs a new WakeupOnCollisionExit criterion.
-
WakeupOnCollisionExit(Node)
- Constructs a new WakeupOnCollisionExit criterion.
-
WakeupOnCollisionExit(Node, int)
- Constructs a new WakeupOnCollisionExit criterion.
-
WakeupOnCollisionExit(SceneGraphPath)
- Constructs a new WakeupOnCollisionExit criterion.
-
WakeupOnCollisionExit(SceneGraphPath, int)
- Constructs a new WakeupOnCollisionExit criterion.
-
getArmingBounds()
- Returns the bounds object used in specifying the collision condition.
-
getArmingPath()
- Returns the path used in specifying the collision condition.
-
getTriggeringBounds()
- Retrieves the Bounds object that caused the collision
-
getTriggeringPath()
- Retrieves the path describing the object causing the collision.
USE_GEOMETRY
public static final int USE_GEOMETRY
- Use geometry in computing collisions.
USE_BOUNDS
public static final int USE_BOUNDS
- Use geometric bounds as an approximation in computing collisions.
WakeupOnCollisionExit
public WakeupOnCollisionExit(SceneGraphPath armingPath)
- Constructs a new WakeupOnCollisionExit criterion.
- Parameters:
- armingPath - the path used to arm collision
detection
WakeupOnCollisionExit
public WakeupOnCollisionExit(SceneGraphPath armingPath,
int speedHint)
- Constructs a new WakeupOnCollisionExit criterion.
- Parameters:
- armingPath - the path used to arm collision
detection
- speedHint - one of USE_GEOMETRY or USE_BOUNDS, specifies how
accurately Java 3D will perform collision detection
- Throws: IllegalArgumentException
- if hint is not one of
USE_GEOMETRY or USE_BOUNDS.
WakeupOnCollisionExit
public WakeupOnCollisionExit(Node armingNode)
- Constructs a new WakeupOnCollisionExit criterion.
- Parameters:
- armingNode - the Group, Shape, or Morph node used to
arm collision detection
- Throws: IllegalArgumentException
- if object is other than a Group,
Shape3D, or Morph node.
WakeupOnCollisionExit
public WakeupOnCollisionExit(Node armingNode,
int speedHint)
- Constructs a new WakeupOnCollisionExit criterion.
- Parameters:
- armingNode - the Group, Shape, or Morph node used to
arm collision detection
- speedHint - one of USE_GEOMETRY or USE_BOUNDS, specifies how
accurately Java 3D will perform collision detection
- Throws: IllegalArgumentException
- if hint is not one of
USE_GEOMETRY or USE_BOUNDS.
- Throws: IllegalArgumentException
- if object is other than a Group,
Shape3D, or Morph node.
WakeupOnCollisionExit
public WakeupOnCollisionExit(Bounds armingBounds)
- Constructs a new WakeupOnCollisionExit criterion.
- Parameters:
- armingBounds - the bounds object used to arm collision
detection
getArmingPath
public SceneGraphPath getArmingPath()
- Returns the path used in specifying the collision condition.
- Returns:
- the SceneGraphPath object generated when arming this
criterion---null implies that a bounds object armed this criteria
getArmingBounds
public Bounds getArmingBounds()
- Returns the bounds object used in specifying the collision condition.
- Returns:
- the Bounds object generated when arming this
criterion---null implies that a SceneGraphPath armed this criteria
getTriggeringPath
public SceneGraphPath getTriggeringPath()
- Retrieves the path describing the object causing the collision.
- Returns:
- the SceneGraphPath that describes the triggering object.
getTriggeringBounds
public Bounds getTriggeringBounds()
- Retrieves the Bounds object that caused the collision
- Returns:
- the colliding Bounds object.
All Packages Class Hierarchy This Package Previous Next Index