ReactToAccelerometer

From Headbone Creative
Revision as of 04:25, 18 April 2013 by Tyson Joehler (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This script controls the position of the object it is attached to using the device's acceleration, relative to its starting position. It is completely configurable how the input from the accelerometer is mapped on to the position of the object.


Contents

Public Variables

xInputMapping : InputAxis

This tells the script how to map the input from the accelerator onto the x axis.

xInputModifier : float

This multiplier is applied to the input on the x axis.

yInputMapping : InputAxis

This tells the script how to map the input from the accelerator onto the y axis.

xInputModifier : float

This multiplier is applied to the input on the y axis.

zInputMapping : InputAxis

This tells the script how to map the input from the accelerator onto the z axis.

zInputModifier : float

This multiplier is applied to the input on the z axis.

lerpSpeed : float

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

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox