Interface SoCollisionManager.CollisionListener
-
- Enclosing class:
- SoCollisionManager
public static interface SoCollisionManager.CollisionListener
Collision callbacks are called when there is a collision. The callback functions receive information about the primitives which collide. If the callback returns NEXT_PRIMITIVE, it will be called for the two next colliding triangles or segments; if it returns NEXT_SHAPE, it will be called for the two next colliding shapes; if it returns ABORT, it will be called only if another transformation generates a collision. When the gluing flag is TRUE, the object and scene passed to the callback function are NULL because there is no collision.
-
-
Field Summary
Fields Modifier and Type Field Description static int
ABORT
static int
NEXT_PRIMITIVE
static int
NEXT_SHAPE
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
collide(SoCollisionManager.CollidingPrimitive object, SoCollisionManager.CollidingPrimitive scene)
-
-
-
Field Detail
-
NEXT_PRIMITIVE
static final int NEXT_PRIMITIVE
- See Also:
- Constant Field Values
-
NEXT_SHAPE
static final int NEXT_SHAPE
- See Also:
- Constant Field Values
-
ABORT
static final int ABORT
- See Also:
- Constant Field Values
-
-
Method Detail
-
collide
int collide(SoCollisionManager.CollidingPrimitive object, SoCollisionManager.CollidingPrimitive scene)
-
-