Next: , Previous: , Up: Motion   [Contents][Index]


12.13 Mouse Torque

Component: MouseTorque

This component applies torque based on mouse movement. It applies rotation on the X axis when the user moves the mouse up or down, and on the Y axis when the user moves the mouse sideways. It can be combined with other components to create more complex controllers.

Field of MouseTorque: bool maverickStyle

Are you the Ice Man? (Reverses the vertical axis)

Default value: true

Field of MouseTorque: KeyCode rotateRight

Optional key to rotate around the Z axis

Default value: KeyCode.E

Field of MouseTorque: KeyCode rotateLeft

Optional key to rotate around the Z axis

Default value: KeyCode.Q

Field of MouseTorque: bool maverickStyle

Are you the Ice Man? (Reverses the vertical axis)

Default value: true

Field of MouseTorque: KeyCode rotateRight

Optional key to rotate around the Z axis

Default value: KeyCode.E

Field of MouseTorque: KeyCode rotateLeft

Optional key to rotate around the Z axis

Default value: KeyCode.Q