jetlag2d
    Preparing search index...

    Class TiltService

    TiltService stores the configuration for working with Tilt in a game. This includes the actors affected by tilt, and the parameters for translating tilt events into physics interactions for those actors.

    Index
    tiltMax: b2Vec2 = ...

    Magnitude of the maximum gravity the accelerometer can create

    tiltMultiplier: number = 1

    A multiplier to apply to tilt (accelerometer) readings

    tiltVelocityOverride: boolean = false
    • Should tilt act as a velocity instead of a force?