Overseer.World.ClickRay

This object contains information derived from the last mouse click. Can be accessed in the expression for Overseer.onMouseClick.

Properties (Methods)

(intersection, intersectTag, finish, flags, result, start)

Vector intersection
The point where the mouse click ray intersected the ground or a 3D object.
long intersectTag
The tag number of the intersection object or -1 for the ground or miss.
Vector finish
The end point of the mouse click ray.
long flags
Set to the clicked mouse button ID. Can be any of the following values:
WM_LBUTTONDBLCLK Left mouse button double click. Will be preceded by a down and up message for the first click.
WM_LBUTTONDOWN Left mouse button down.
WM_LBUTTONUP Left mouse button up.
WM_MBUTTONDBLCLK Middle mouse button double click. Will be preceded by a down and up message for the first click.
WM_MBUTTONDOWN Middle mouse button down.
WM_MBUTTONUP Middle mouse button up.
WM_RBUTTONDBLCLK Right mouse button double click. Will be preceded by a down and up message for the first click.
WM_RBUTTONDOWN Right mouse button down.
WM_RBUTTONUP Right mouse button down.
boolean result
This property is set to true if the ray intersected anything solid (object or ground) and false if no intersection was detected.
Vector start
The start point of the mouse click ray.
Methods (Properties)

( MouseRay )
 

void MouseRay(long mouseX, long mouseY)

    Fills start and finish based on 2D mouse coordinate on screen. Designed to be used together with Overseer.Window object as source of mouse coordinates.


Copyright© 2001 Thought Guild Inc.