skeldjs
    Preparing search index...

    Class PlayerSnapToEvent<RoomType>

    Emitted when a player snaps to a position, without lerping. Typically emitted when the player is moves between vents.

    Type Parameters

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    eventName: "player.snapto" = ...
    message: undefined | SnapToMessage

    The message that this event originated from.

    newPosition: Vector2

    The new position of the player.

    oldPosition: Vector2

    The old position of the player.

    player: Player<RoomType>

    The player that this event is for.

    room: RoomType

    The room or client that the event came from.

    eventName: "player.snapto" = ...

    Accessors

    Methods