OBJECT COLLISION This command will return a one if the two specified 3D objects are overlapping.
Syntax
    Return Integer=OBJECT COLLISION(ObjectA Number, ObjectB Number)
Parameters
    ObjectA Number
Integer The object number
    ObjectB Number
Integer The second object number or zero to check all objects, the number of the object overlapping with the first object will be returned
Returns
This command will return a one if the two specified 3D objects are overlapping
Description
If the second object number is set to zero, the number of the object overlapping with 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.
Example Code

    No example code is provided for this command
See also
BASIC3D Commands Menu Index