PlayerLocationOnPlacement

constructor(position: Vec3 = player.position(), pose: Pose = player.pose, rotation: Rotation = RotationManager.serverRotation, movingHorizontally: Boolean = player.input.keyPresses.anyHorizontal)

Parameters

position

the player's position (on placement)

pose

the player's pose (on placement)

rotation

the rotation to aim from. Target finding keeps the rotation change minimal relative to it

movingHorizontally

whether the player moves horizontally (on placement)