DriveKeys

Description

Supported Script Types: Interface Scripts • Client Entity Scripts • Avatar Scripts

The DriveKeys API provides constant numeric values that represent different logical keys that drive your avatar and camera.

Properties

Name Type Summary
TRANSLATE_X number

Move the user's avatar in the direction of its x-axis, if the camera isn't in independent or mirror modes.

TRANSLATE_Y number

Move the user's avatar in the direction of its y-axis, if the camera isn't in independent or mirror modes.

TRANSLATE_Z number

Move the user's avatar in the direction of its z-axis, if the camera isn't in independent or mirror modes.

YAW number

Rotate the user's avatar about its y-axis at a rate proportional to the control value, if the camera isn't in independent or mirror modes.

STEP_TRANSLATE_X number

No action.

STEP_TRANSLATE_Y number

No action.

STEP_TRANSLATE_Z number

No action.

STEP_YAW number

Rotate the user's avatar about its y-axis in a step increment, if the camera isn't in independent or mirror modes.

PITCH number

Rotate the user's avatar head and attached camera about its negative x-axis (i.e., positive values pitch down) at a rate proportional to the control value, if the camera isn't in HMD, independent, or mirror modes.

ZOOM number

Zoom the camera in or out.

DELTA_YAW number

Rotate the user's avatar about its y-axis by an amount proportional to the control value, if the camera isn't in independent or mirror modes.

DELTA_PITCH number

Rotate the user's avatar head and attached camera about its negative x-axis (i.e., positive values pitch down) by an amount proportional to the control value, if the camera isn't in HMD, independent, or mirror modes.