Syntax

dbSetObjectCollisionToPolygons(ObjectID)

Description

This command will set the specified 3D object to use polygon checking for collision detection. Polygon detection is much slower that box and sphere detection, but allows you to detect perfect collision against an object that has a complex polygon structure. The parameter should be specified using an integer value. When a polygon test is carried out, the primary object is always treated as a polygon object and the secondary object is always a sphere representative of the size of the second object. This method is significantly faster that a test against two polygon structures.

See Also

dbSetObjectCollisionToBoxes, dbSetObjectCollisionToSpheres, dbSetObjectRadius