Example usage for javax.media.j3d WakeupOnCollisionEntry USE_BOUNDS

List of usage examples for javax.media.j3d WakeupOnCollisionEntry USE_BOUNDS

Introduction

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

Prototype

int USE_BOUNDS

To view the source code for javax.media.j3d WakeupOnCollisionEntry USE_BOUNDS.

Click Source Link

Document

Use geometric bounds as an approximation in computing collisions.

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;/*from w  ww  .  j av  a 2 s .co  m*/
    wakeupArray[1] = wakeupTwo;

    wakeupCondition = new WakeupOr(wakeupArray);

    m_Owner = owner;
}