class PlayerController

Exported Variables

NameTypeDescription
groundedAccelfloatThe rate at which the player accelerates (speeds up) when they are on the ground
groundedDecelerationfloatThe rate at which the player decelerates (slows down) when they are on the ground
maxSpeedfloatThe maximum speed the player can travel at on the XZ plane
jumpHeightfloatThe height of the peak of the player’s jump, in world space units
cameraCamera3DThe player’s first person camera
cameraSensitivityfloatThe sensitivity of the player’s camera, controlling how fast the camera rotates when the mouse moves
sensitivityDivisorfloat
baseGravityMagnitudefloatThe acceleration due to gravity, in world space units per second squared (bigger = fall faster)
gravityScaleWhenFallingfloatThe scale factor of gravity when the player falls, best to be set above one, as it makes the player’s jump feel less floaty
cutFactorWhenJumpReleasedEarlyfloatThe amount of the player’s velocity (0 - 1) that is removed when the jump button is released early