| java.lang.Object javax.media.j3d.WakeupCondition javax.media.j3d.WakeupCriterion javax.media.j3d.WakeupOnCollisionMovement
WakeupOnCollisionMovement | final public class WakeupOnCollisionMovement extends WakeupCriterion (Code) | | Class specifying a wakeup when the specified object
moves while in collision with any other object in the scene graph.
|
Constructor Summary | |
public | WakeupOnCollisionMovement(SceneGraphPath armingPath) Constructs a new WakeupOnCollisionMovement criterion. | public | WakeupOnCollisionMovement(SceneGraphPath armingPath, int speedHint) Constructs a new WakeupOnCollisionMovement criterion. | public | WakeupOnCollisionMovement(Node armingNode) Constructs a new WakeupOnCollisionMovement criterion.
Parameters: armingNode - the Group, Shape, or Morph node used toarm collision detection exception: IllegalArgumentException - if object is under aSharedGroup node or object is other than a Group, Shape3D,Morph or BoundingLeaf node. | public | WakeupOnCollisionMovement(Node armingNode, int speedHint) Constructs a new WakeupOnCollisionMovement criterion.
Parameters: armingNode - the Group, Shape, or Morph node used toarm collision detection Parameters: speedHint - one of USE_GEOMETRY or USE_BOUNDS, specifies howaccurately Java 3D will perform collision detection exception: IllegalArgumentException - if hint is not one ofUSE_GEOMETRY or USE_BOUNDS. exception: IllegalArgumentException - if object is under aSharedGroup node or object is other than a Group, Shape3D,Morph or BoundingLeaf node. | public | WakeupOnCollisionMovement(Bounds armingBounds) Constructs a new WakeupOnCollisionMovement criterion. | | WakeupOnCollisionMovement(SceneGraphPath armingPath, int speedHint, Bounds armingBounds) Constructs a new WakeupOnCollisionMovement criterion. |
COLLIDEMOVE_IN_BS_LIST | final static int COLLIDEMOVE_IN_BS_LIST(Code) | | |
COND_IN_GS_LIST | final static int COND_IN_GS_LIST(Code) | | |
TOTAL_INDEXED_UNORDER_SET_TYPES | final static int TOTAL_INDEXED_UNORDER_SET_TYPES(Code) | | |
USE_BOUNDS | final public static int USE_BOUNDS(Code) | | Use geometric bounds as an approximation in computing collisions.
|
USE_GEOMETRY | final public static int USE_GEOMETRY(Code) | | Use geometry in computing collisions.
|
accuracyMode | int accuracyMode(Code) | | Accuracy mode one of USE_GEOMETRY or USE_BOUNDS
|
duplicateEvent | boolean duplicateEvent(Code) | | |
geometryAtoms | UnorderList geometryAtoms(Code) | | Geometry atoms that this wakeup condition refer to.
Only use by SHAPE, MORPH, GROUP, ORIENTEDSHAPE
|
WakeupOnCollisionMovement | public WakeupOnCollisionMovement(SceneGraphPath armingPath)(Code) | | Constructs a new WakeupOnCollisionMovement criterion.
Parameters: armingPath - the path used to arm collisiondetection exception: IllegalArgumentException - if object associated with the SceneGraphPath is other than a Group, Shape3D, Morph, or BoundingLeaf node. |
WakeupOnCollisionMovement | public WakeupOnCollisionMovement(SceneGraphPath armingPath, int speedHint)(Code) | | Constructs a new WakeupOnCollisionMovement criterion.
Parameters: armingPath - the path used to arm collisiondetection Parameters: speedHint - one of USE_GEOMETRY or USE_BOUNDS, specifies howaccurately Java 3D will perform collision detection exception: IllegalArgumentException - if hint is not one ofUSE_GEOMETRY or USE_BOUNDS. exception: IllegalArgumentException - if object associated with the SceneGraphPath is other than a Group, Shape3D, Morph, or BoundingLeaf node. |
WakeupOnCollisionMovement | public WakeupOnCollisionMovement(Node armingNode)(Code) | | Constructs a new WakeupOnCollisionMovement criterion.
Parameters: armingNode - the Group, Shape, or Morph node used toarm collision detection exception: IllegalArgumentException - if object is under aSharedGroup node or object is other than a Group, Shape3D,Morph or BoundingLeaf node. |
WakeupOnCollisionMovement | public WakeupOnCollisionMovement(Node armingNode, int speedHint)(Code) | | Constructs a new WakeupOnCollisionMovement criterion.
Parameters: armingNode - the Group, Shape, or Morph node used toarm collision detection Parameters: speedHint - one of USE_GEOMETRY or USE_BOUNDS, specifies howaccurately Java 3D will perform collision detection exception: IllegalArgumentException - if hint is not one ofUSE_GEOMETRY or USE_BOUNDS. exception: IllegalArgumentException - if object is under aSharedGroup node or object is other than a Group, Shape3D,Morph or BoundingLeaf node. |
WakeupOnCollisionMovement | public WakeupOnCollisionMovement(Bounds armingBounds)(Code) | | Constructs a new WakeupOnCollisionMovement criterion.
Parameters: armingBounds - the bounds object used to arm collisiondetection |
WakeupOnCollisionMovement | WakeupOnCollisionMovement(SceneGraphPath armingPath, int speedHint, Bounds armingBounds)(Code) | | Constructs a new WakeupOnCollisionMovement criterion.
Parameters: armingPath - the path used to arm collisiondetection Parameters: speedHint - one of USE_GEOMETRY or USE_BOUNDS, specifies howaccurately Java 3D will perform collision detection Parameters: armingBounds - the bounds object used to arm collisiondetection exception: IllegalArgumentException - if hint is not one ofUSE_GEOMETRY or USE_BOUNDS. exception: IllegalArgumentException - if object associated with the SceneGraphPath is other than a Group, Shape3D, Morph, or BoundingLeaf node. |
addBehaviorCondition | void addBehaviorCondition(BehaviorStructure bs)(Code) | | This is a callback from BehaviorStructure. It is
used to add wakeupCondition to behavior structure.
|
getArmingBounds | public Bounds getArmingBounds()(Code) | | Returns the bounds object used in specifying the collision condition.
the Bounds object generated when arming thiscriterion---null implies that a SceneGraphPath armed this criteria |
getArmingPath | public SceneGraphPath getArmingPath()(Code) | | Returns the path used in specifying the collision condition.
the SceneGraphPath object generated when arming thiscriterion---null implies that a bounds object armed this criteria |
getTriggeringBounds | public Bounds getTriggeringBounds()(Code) | | Retrieves the Bounds object that caused the collision
the colliding Bounds object. exception: IllegalStateException - if not called from within the a behavior's processStimulus method which was awoken by a collision. |
getTriggeringPath | public SceneGraphPath getTriggeringPath()(Code) | | Retrieves the path describing the object causing the collision.
the SceneGraphPath that describes the triggering object. exception: IllegalStateException - if not called from within the a behavior's processStimulus method which was awoken by a collision. |
removeBehaviorCondition | void removeBehaviorCondition(BehaviorStructure bs)(Code) | | This is a callback from BehaviorStructure. It is
used to remove wakeupCondition from behavior structure.
|
resetBehaviorCondition | void resetBehaviorCondition(BehaviorStructure bs)(Code) | | Perform task in addBehaviorCondition() that has to be
set every time the condition met.
|
setTriggered | void setTriggered()(Code) | | |
updateCollisionBounds | void updateCollisionBounds(boolean reEvaluateGAs)(Code) | | |
Fields inherited from javax.media.j3d.WakeupCriterion | boolean triggered(Code)(Java Doc)
|
|
|