Syntax
Value.f = dbIntersectObject(ObjectID, x.f, y.f, z.f, x2.f, y2.f, z2.f)
Description
This command will return the distance to the point of intersection between two coordinates, in reference to the specified object. Use this command to project a line from your current position to a destination to determine whether a collision will occur with an object. Ideal for bullet calculations and fast manual polygon collision.
See Also
dbGetObjectCollisionX, dbGetObjectCollisionY, dbGetObjectCollisionZ, dbIntersectObject, dbObjectCollision, dbObjectCollisionCenterX, dbObjectCollisionCenterY, dbObjectCollisionCenterZ, dbObjectHit