Class ThirdPersonSettings
- Namespace
- WitShells.ThirdPersonControl
ScriptableObject containing all third-person controller settings. Create an instance via Create > WitShells > ThirdPersonControl > Settings.
public class ThirdPersonSettings : ScriptableObject
- Inheritance
-
ThirdPersonSettings
Properties
CrouchSpeed
public float CrouchSpeed { get; }
Property Value
Default
Returns a default settings instance. Attempts to load from Resources first.
public static ThirdPersonSettings Default { get; }
Property Value
GroundCheckDistance
public float GroundCheckDistance { get; }
Property Value
GroundLayers
public LayerMask GroundLayers { get; }
Property Value
- LayerMask
GroundedGravity
public float GroundedGravity { get; }
Property Value
JumpForce
public float JumpForce { get; }
Property Value
JumpTimeout
public float JumpTimeout { get; }
Property Value
LookSensitivity
public float LookSensitivity { get; }
Property Value
LookSpeed
public float LookSpeed { get; }
Property Value
MaxPitch
public float MaxPitch { get; }
Property Value
MinPitch
public float MinPitch { get; }
Property Value
RotationSmoothness
public float RotationSmoothness { get; }
Property Value
RunSpeed
public float RunSpeed { get; }
Property Value
SoundEffects
public SoundSfxObject SoundEffects { get; }
Property Value
SoundVolume
public float SoundVolume { get; }
Property Value
TerminalVelocity
public float TerminalVelocity { get; }
Property Value
WalkSpeed
public float WalkSpeed { get; }
Property Value
Methods
CalculateJumpVelocity()
Calculates the initial jump velocity based on jump force and gravity.
public float CalculateJumpVelocity()
Returns
ClampPitch(float)
Clamps the pitch angle within the defined limits.
public float ClampPitch(float pitch)
Parameters
pitchfloat
Returns
GetMovementSpeed(bool, bool)
Gets the appropriate movement speed based on current state.
public float GetMovementSpeed(bool isSprinting, bool isCrouching)