Share

LUACollisionResult

[Desktop Automation]

An instance of this object is returned by the checkforcollisions function of the LUATray object (Reference: LUATray). It contains information about the collisions within a tray.

Properties

Property Read/write Type Description
meshcount Read Number Number of colliding meshes in the list

Of a collision, both meshes are inserted into the list. A meshcount of 2 means there is 1 collision.

Back to top

Methods

Name Syntax Description
getcollisionmesh Mesh = collisionresult:getcollisionmesh(0) Returns a colliding mesh.

For any detected collision, the two colliding meshes are inserted into the list one by one, i.e. Mesh at index 0 collides with mesh at index 1 and so on.

Meshes with multiple collisions appear multiple times in the list.

Back to top

Was this information helpful?