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
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
-
Method Summary
Modifier and TypeMethodDescriptionint
-
Field Details
-
NEXT_PRIMITIVE
static final int NEXT_PRIMITIVE- See Also:
-
NEXT_SHAPE
static final int NEXT_SHAPE- See Also:
-
ABORT
static final int ABORT- See Also:
-
-
Method Details
-
collide
int collide(SoCollisionManager.CollidingPrimitive object, SoCollisionManager.CollidingPrimitive scene)
-