|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.media.j3d.WakeupCondition
javax.media.j3d.WakeupCriterion
javax.media.j3d.WakeupOnCollisionEntry
public final class WakeupOnCollisionEntry
Class specifying a wakeup when the specified object collides with any other object in the scene graph.
Field Summary | |
---|---|
static int |
USE_BOUNDS
Use geometric bounds as an approximation in computing collisions. |
static int |
USE_GEOMETRY
Use geometry in computing collisions. |
Constructor Summary | |
---|---|
WakeupOnCollisionEntry(Bounds armingBounds)
Constructs a new WakeupOnCollisionEntry criterion. |
|
WakeupOnCollisionEntry(Node armingNode)
Constructs a new WakeupOnCollisionEntry criterion. |
|
WakeupOnCollisionEntry(Node armingNode,
int speedHint)
Constructs a new WakeupOnCollisionEntry criterion. |
|
WakeupOnCollisionEntry(SceneGraphPath armingPath)
Constructs a new WakeupOnCollisionEntry criterion with USE_BOUNDS for a speed hint. |
|
WakeupOnCollisionEntry(SceneGraphPath armingPath,
int speedHint)
Constructs a new WakeupOnCollisionEntry criterion. |
Method Summary | |
---|---|
Bounds |
getArmingBounds()
Returns the bounds object used in specifying the collision condition. |
SceneGraphPath |
getArmingPath()
Returns the path used in specifying the collision condition. |
Bounds |
getTriggeringBounds()
Retrieves the Bounds object that caused the collision |
SceneGraphPath |
getTriggeringPath()
Retrieves the path describing the object causing the collision. |
Methods inherited from class javax.media.j3d.WakeupCriterion |
---|
hasTriggered |
Methods inherited from class javax.media.j3d.WakeupCondition |
---|
allElements, triggeredElements |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int USE_GEOMETRY
public static final int USE_BOUNDS
Constructor Detail |
---|
public WakeupOnCollisionEntry(SceneGraphPath armingPath)
armingPath
- the path used to arm collision
detection
java.lang.IllegalArgumentException
- if object associated with the
SceneGraphPath is other than a Group, Shape3D, Morph, or
BoundingLeaf node.public WakeupOnCollisionEntry(SceneGraphPath armingPath, int speedHint)
armingPath
- the path used to arm collision
detectionspeedHint
- one of USE_GEOMETRY or USE_BOUNDS, specifies how
accurately Java 3D will perform collision detection
java.lang.IllegalArgumentException
- if hint is not one of
USE_GEOMETRY or USE_BOUNDS.
java.lang.IllegalArgumentException
- if object associated with the
SceneGraphPath is other than a Group, Shape3D, Morph, or
BoundingLeaf node.public WakeupOnCollisionEntry(Node armingNode)
armingNode
- the Group, Shape, or Morph node used to
arm collision detection
java.lang.IllegalArgumentException
- if object is under a
SharedGroup node or object is other than a Group, Shape3D,
Morph or BoundingLeaf node.public WakeupOnCollisionEntry(Node armingNode, int speedHint)
armingNode
- the Group, Shape, or Morph node used to
arm collision detectionspeedHint
- one of USE_GEOMETRY or USE_BOUNDS, specifies how
accurately Java 3D will perform collision detection
java.lang.IllegalArgumentException
- if hint is not one of
USE_GEOMETRY or USE_BOUNDS.
java.lang.IllegalArgumentException
- if object is under a
SharedGroup node or object is other than a Group, Shape3D,
Morph or BoundingLeaf node.public WakeupOnCollisionEntry(Bounds armingBounds)
armingBounds
- the bounds object used to arm collision
detectionMethod Detail |
---|
public SceneGraphPath getArmingPath()
public Bounds getArmingBounds()
public SceneGraphPath getTriggeringPath()
java.lang.IllegalStateException
- if not called from within the
a behavior's processStimulus method which was awoken by a collision.public Bounds getTriggeringBounds()
java.lang.IllegalStateException
- if not called from within the
a behavior's processStimulus method which was awoken by a collision.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |