PM_OVERLAY_ADD_3D_SPHERE

Syntax

handle_val = PM_OVERLAY_ADD_3D_SPHERE ( overlay_handle, [properties_tag_record_handle,] x, y, z, radius );
Input arguments
handle overlay_handle Handle of the overlay context to which to add the sphere.
float x X coordinate of the sphere in world space.
float y Y coordinate of the sphere in world space.
float z Z coordinate of the sphere in world space.
float radius Radius of the sphere in millimeters on the screen.
Optional input arguments
handle properties_tag_record_handle Handle of the tag record from which to get the properties of the sphere.
Accepted properties: color.

Return Values

Success:
handle entity_handle Handle to the created overlay entity.
Failure:
int -1 Script interface error.

Description

This function adds a 3D sphere to a given overlay context. The overlay context must first be opened with PM_OVERLAY_OPEN(overlay_handle).

Example

%PMS_HOME%\pm\macro\Examples\PM_OVERLAY_DEMO.mac