Jump to content

Raycasting

The pick commands can be used to perform raycasts. Although picks are similar to collision, and the picking system even borrows the collision types system, it is important to make a distinction between the two:

The collision type parameter works as follows: Imagine the pick-ray being a physical body with the specified collision type that flies in the pick direction. It'll stop at the first mesh it hits that has a collision type which would collide with it's type. Therefore, for the pick type parameter to work, Collisions must have been used to set up any type (response type doesn't matter) of collision between the pick's type and the mesh's type. So after calling (for example) Collsions(1,2), a pick of type 2 will hit meshes of type 1 and the other way around.

Commands

CameraPick
EntityPick
EntityVisible
Filter
LinePick
PointVisible
TPick
  • You cannot add records