Syntax
dbMakeObjectCollisionBox(ObjectID, x1.f, y1.f, z1.f, x2.f, y2.f, z2.f, CollisionFlag)
Description
This command will make an object use box collision. If a value of zero is specified for the flag value, the box will be deemed to be a non-rotating box and able to generate sliding collision data using the dbGetObjectCollisionX, dbGetObjectCollisionY and dbGetObjectCollisionZ expressions. If the CollisionFlag is #True, the box is deemed to be a rotated-box and will provide more accurate collision feedback as the object rotates. Be aware that the collision box you create is affected by the subsequent scaling of the object, and that when the object is rotated the fixed collision box orientation remains unrotated to aid in the effect of sliding collision.
See Also
dbDeleteObjectCollisionBox, dbSetGlobalCollisionOn, dbSetObjectCollisionOn, dbSetObjectRadius