RiderInput 5.46.0
Movement input of a player riding (and possibly steering) a vehicle, taken from one PlayerAuthInputPacket.
$strafe and $forward are the move vector of the client (WASD or joystick, -1 to 1): strafe is positive to the left, forward is positive forwards. Yaw and pitch are the player's look direction in degrees.
Properties
$forward
php
public readonly float $forward$jumping
php
public readonly bool $jumping$paddlingLeft
php
public readonly bool $paddlingLeftWhether the client animates the left paddle of the boat it drives (PlayerAuthInput PADDLING_LEFT).
$paddlingRight
php
public readonly bool $paddlingRightWhether the client animates the right paddle of the boat it drives (PlayerAuthInput PADDLING_RIGHT).
$pitch
php
public readonly float $pitch$sneaking
php
public readonly bool $sneaking$sprinting
php
public readonly bool $sprinting$strafe
php
public readonly float $strafe$yaw
php
public readonly float $yawMethods
__construct()
php
public function __construct(float $strafe, float $forward, float $yaw, float $pitch, bool $jumping, bool $sneaking, bool $sprinting, bool $paddlingLeft = false, bool $paddlingRight = false)isMoving()
php
public function isMoving() : boolnone()
php
public static function none(float $yaw = 0.0, float $pitch = 0.0) : self