Syntax

Result = dbStaticLineOfSight(x1.f, y1.f, z1.f, z2.f, y2.f, z2.f, Width.f, Accuracy.f)

Description

This command will project a ray within the static scene, not to detect collision with static geometry but with the invisible collision boxes created using the dbMakeStaticCollisionBox command. A return value of 1 indicates that the line intersects one of the invisible collision boxes.

 

x1, y1, z1

The x, y, and z coordinates of the start vector of the 3D line.

 

x2, y2, z2

The x, y, and z coordinates of the end vector of the 3D line.

 

Width

The width, height and depth of the 3D bound box that will be used in a series of box intersect tests with any collision boxes along the line.

 

Accuracy

The value represents the steps in the series of intersect tests described above. A larger value means a less accurate test which may miss small collision boxes.

See Also

dbMakeStaticCollisionBox