Example usage for javax.media.j3d WakeupOnCollisionExit USE_BOUNDS

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

Introduction

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

Prototype

int USE_BOUNDS

To view the source code for javax.media.j3d WakeupOnCollisionExit 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;// ww w . ja  v  a 2  s.c o  m
    wakeupArray[1] = wakeupTwo;

    wakeupCondition = new WakeupOr(wakeupArray);

    m_Owner = owner;
}