Example usage for javax.media.j3d WakeupOnCollisionExit WakeupOnCollisionExit

List of usage examples for javax.media.j3d WakeupOnCollisionExit WakeupOnCollisionExit

Introduction

In this page you can find the example usage for javax.media.j3d WakeupOnCollisionExit WakeupOnCollisionExit.

Prototype

public WakeupOnCollisionExit(Node armingNode, int speedHint) 

Source Link

Document

Constructs a new WakeupOnCollisionExit criterion.

Usage

From source file:AvatarTest.java

public CollisionBehavior(Node node, ComplexObject owner) {
    wakeupOne = new WakeupOnCollisionEntry(node, WakeupOnCollisionEntry.USE_BOUNDS);
    wakeupTwo = new WakeupOnCollisionExit(node, WakeupOnCollisionExit.USE_BOUNDS);

    wakeupArray[0] = wakeupOne;/* w  w w.j  a va2  s.co  m*/
    wakeupArray[1] = wakeupTwo;

    wakeupCondition = new WakeupOr(wakeupArray);

    m_Owner = owner;
}

From source file:KeyNavigateTest.java

public CollisionBehavior(Node node, ComplexObject owner) {
    wakeupOne = new WakeupOnCollisionEntry(node, WakeupOnCollisionEntry.USE_GEOMETRY);
    wakeupTwo = new WakeupOnCollisionExit(node, WakeupOnCollisionExit.USE_GEOMETRY);

    wakeupArray[0] = wakeupOne;//from   w w w  .  jav a2  s .  c om
    wakeupArray[1] = wakeupTwo;

    wakeupCondition = new WakeupOr(wakeupArray);

    m_Owner = owner;
}