What's New in Director 8.5 > Controlling the 3D World > Collisions > Camera commands |
![]() ![]() ![]() |
Camera commands
These camera functions allow you to determine which models have been clicked when a user clicks the mouse within a 3D sprite. You can also translate coordinates in 3D space to coordinates in 2D sprite space and vice versa.
Function |
Description |
Returns |
---|---|---|
|
Returns the 2D sprite-space coordinates of a point from a 3D world vector. |
A point. |
|
The opposite of the Multiple world-space positions can map to the same sprite-space point. A round-trip |
A vector. |
|
Returns the first model intersected by a ray from a location This function is useful for picking in conjunction with an |
The first model intersected by the ray. A value of |
|
Returns a list of all models intersected by a ray from a location This function is useful for picking in conjunction with an |
The first model intersected by the ray or a list of up to the specified maximum. If no maximum is specified, the command returns all models under the ray.
|
|
Returns a list of models under the ray starting at the vector |
The first model intersected by the ray plus a list of up to the specified maximum number of models. If the maximum number of models isn't specified, all models the ray intersects are returned. |
![]() ![]() ![]() |