Constructors
constructor
- new TiltMovement(): TiltMovement
Accessors
rigidBody
- get rigidBody(): undefined | RigidBodyComponent
- set rigidBody(body): void
Returns void
Methods
prerender
- prerender(_elapsedMs, _camera): void
Returns void
updateForce
- updateForce(v): void
Returns void
updateVelocity
- updateVelocity(v): void
Returns void
updateXVelocity
- updateXVelocity(v): void
Returns void
updateYVelocity
- updateYVelocity(v): void
Returns void
A rule for moving based on Tilt / Accelerometer