Difference between revisions of "ReactToAccelerometer"

From Headbone Creative
Jump to: navigation, search
(Initial page, includes API information and categories)

Revision as of 22:43, 16 April 2013

This script controls the position of the object it is attached to, relative to its starting position. It has options for reacting to motion in 2 or 3 dimensions.


Contents

Public Variables

movementModifier : float

The movement modifier. This is a multiplier applied to the acceleration when calculating the new position of the object.

movementSpeed : float

This is how fast the object will move in the scene.

is2dScene : bool

This determines how the movement of the device is mapped onto the movement of the object.

When true, the X and Y positions of the object updating using the Y and X inputs of the accelerometer, respectively.

When false, the X, Y and Z movement of the device is translated onto the X, Y and Z position of the object.

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox