Click or drag to resize
SoCollisionManagerAddCollisionCallback Method

Note: This API is now obsolete.

Use Collision event instead. Adds collision delegate.

Namespace: OIV.Inventor.Collision
Assembly: OIV.Inventor (in OIV.Inventor.dll) Version: 9.9.13.0 (9.9.13.0)
Syntax
[ObsoleteAttribute("Use Collision event instead.")]
[EditorBrowsableAttribute(EditorBrowsableState.Never)]
public void AddCollisionCallback(
	SoCollisionManagerCollisionUserDataCB cb,
	Object userData
)

Parameters

cb
Type: OIV.Inventor.CollisionSoCollisionManagerCollisionUserDataCB
userData
Type: SystemObject
Remarks

Collision delegates are called when there is a collision. The delegate receive information about the primitives which collide. If the delegate 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 delegate are NULL because there is no collision.

See Also