This function assigns a new anchor.
Copy Code | |
---|---|
int AddAnchor( dict Desc ); |
Desc
Type: dict
The anchor description to add.
Name | Type | Description |
---|---|---|
Direction_x | float | The locale yaw-direction in radian. |
Direction_y | float | The locale pitch-direction in radian. |
Name | string | The name of the anchor. |
Position_x | float | The locale position on x-axis. |
Position_y | float | The locale position on y-axis. |
Position_z | float | The locale position on z-axis. |
Returns the anchor index.
Returns INT32_MAX if an internal error occurred.
If the anchor exists, the behavior is nearby equal to SetAnchorDesc.