Syntax
Result = dbObjectHit(ObjectIDa, ObjectIDb)
Description
This command will return a one if the two specified 3D objects hit each other. If the second object number is set to zero, the number of the object hit by the first object will be returned as an integer value. The parameters should be specified using integer values. Spheres and boxes are solid objects, and so collision can only occur when they collide together. When an object is entirely within another object, even though the geometry is not touching, the collision is still valid as the larger object would be a solid construct. You cannot perform polygon to polygon collision on two objects. When two polygon objects are asked to test for collision, the secondary object will be treated like a sphere for collision purposes, where the outer extents of the objects geometry shall define the sphere.
See Also
dbGetObjectCollisionX, dbGetObjectCollisionY, dbIntersectObject, dbGetObjectCollisionZ, dbObjectCollision, dbObjectCollisionCenterX, dbObjectCollisionCenterY, dbObjectCollisionCenterZ