SkateboardController

사용되지 않는 항목 표시

A SkateboardController is an object responsible for translating PlayerActions to movements with a SkateboardPlatform.

요약

속성

  • 읽기 전용
    복제되지 않음
    병렬 읽기

    The direction of movement, tied to the keys A and D. Must be 1 (right), 0 (straight), or -1 (left). Will refresh back to 0 unless constantly set.

  • 읽기 전용
    복제되지 않음
    병렬 읽기

    The direction of movement, tied to the keys W and S. Must be an integer 1 (forward), 0 (null), or -1 (reverse). Will refresh back to 0 unless constantly set.

메서드

메서드Controller에서 상속되었습니다

이벤트

이벤트Controller에서 상속되었습니다

속성

Steer

읽기 전용
복제되지 않음
병렬 읽기

The direction of movement, tied to the keys A and D. Must be 1 (right), 0 (straight), or -1 (left). Will refresh back to 0 unless constantly set.

Throttle

읽기 전용
복제되지 않음
병렬 읽기

The direction of movement, tied to the keys W and S. Must be an integer 1 (forward), 0 (null), or -1 (reverse). Will refresh back to 0 unless constantly set.

메서드

이벤트

AxisChanged

Fired when any input state of the skateboard controller is updated. The axis is fired with either "Throttle" if the throttle state of the skateboard was updated or "Steer" if the steering state of the skateboard was updated.

매개 변수

axis: string