_started
: bool |
Signature
bool _started |
_whenLocomotionEventHandled
: Action< LocomotionEvent, Pose > |
Signature
Action<LocomotionEvent, Pose> _whenLocomotionEventHandled |
Acceleration
: float
[Get][Set] |
Signature
float Acceleration |
AirDamping
: float
[Get][Set] |
Signature
float AirDamping |
AutoUpdateHeight
: bool
[Get][Set] |
Signature
bool AutoUpdateHeight |
CrouchHeightOffset
: float
[Get][Set] |
Signature
float CrouchHeightOffset |
CrouchSpeedFactor
: float
[Get][Set] |
Signature
float CrouchSpeedFactor |
DefaultHeight
: float
[Get][Set] |
Signature
float DefaultHeight |
ExitHotspotDistance
: float
[Get][Set] |
Signature
float ExitHotspotDistance |
GravityFactor
: float
[Get][Set] |
Signature
float GravityFactor |
GroundDamping
: float
[Get][Set] |
Signature
float GroundDamping |
HeightOffset
: float
[Get][Set] |
Signature
float HeightOffset |
IsGrounded
: bool
[Get] |
Indicates wheter the character was detected as grounded after the last move.
Signature
bool IsGrounded |
JumpDamping
: float
[Get][Set] |
Signature
float JumpDamping |
JumpForce
: float
[Get][Set] |
Signature
float JumpForce |
LayerMask
: LayerMask
[Get][Set] |
Signature
LayerMask LayerMask |
MaxReboundSteps
: int
[Get][Set] |
Signature
int MaxReboundSteps |
MaxSlopeAngle
: float
[Get][Set] |
Signature
float MaxSlopeAngle |
MaxStep
: float
[Get][Set] |
Signature
float MaxStep |
MaxWallPenetrationDistance
: float
[Get][Set] |
Signature
float MaxWallPenetrationDistance |
RunningSpeedFactor
: float
[Get][Set] |
Signature
float RunningSpeedFactor |
SkinWidth
: float
[Get][Set] |
Signature
float SkinWidth |
SpeedFactor
: float
[Get][Set] |
Signature
float SpeedFactor |
WhenLocomotionEventHandled
: Action< LocomotionEvent, Pose > |
Signature
Action<LocomotionEvent, Pose> WhenLocomotionEventHandled |
LastUpdate
()
|
Signature
virtual void LastUpdate() Returns void |
LateUpdate
()
|
Signature
virtual void LateUpdate() Returns void |
OnDisable
()
|
Signature
virtual void OnDisable() Returns void |
OnEnable
()
|
Signature
virtual void OnEnable() Returns void |
Start
()
|
Signature
virtual void Start() Returns void |
Update
()
|
Signature
virtual void Update() Returns void |
Crouch
(
crouch
)
|
When true, it will enable crouching by applying the crouch height offset to the character and using the crouch speed factor for movement.
Signature
void Crouch(bool crouch) Parameters crouch: bool
True to crouch, false to stand up
Returns void |
DisableMovement
()
|
Disables grounding until a new input is requested or the movement is manually re-enabled.
Signature
void DisableMovement() Returns void |
EnableMovement
()
|
Re-enables movement if it was disabled.
Making sure grounding is working again
Signature
void EnableMovement() Returns void |
HandleLocomotionEvent
(
locomotionEvent
)
|
Signature
void HandleLocomotionEvent(LocomotionEvent locomotionEvent) Parameters locomotionEvent: LocomotionEventReturns void |
InjectAllCapsuleLocomotionHandler
(
capsule
)
|
Signature
void InjectAllCapsuleLocomotionHandler(CapsuleCollider capsule) Parameters capsule: CapsuleColliderReturns void |
InjectCapsule
(
capsule
)
|
Signature
void InjectCapsule(CapsuleCollider capsule) Parameters capsule: CapsuleColliderReturns void |
Jump
()
|
Jump vertically if it the character grounded.
If the character is crouching it will stand up instead.
Signature
void Jump() Returns void |
ResetPlayerToCharacter
()
|
Instantly moves the Player to the character position.
Signature
void ResetPlayerToCharacter() Returns void |
Run
(
run
)
|
When true, it will enable running by applying the running speed factor to the movement.
Signature
void Run(bool run) Parameters run: boolReturns void |
SetDeltaTimeProvider
(
deltaTimeProvider
)
|
Sets a function that returns the last delta time in seconds.
Signature
void SetDeltaTimeProvider(Func< float > deltaTimeProvider) Parameters deltaTimeProvider: Func< float >Returns void |
ToggleCrouch
()
|
If the character is crouching it will stand up and vice versa.
Signature
void ToggleCrouch() Returns void |
ToggleRun
()
|
If the character is walking it will run and vice versa.
Signature
void ToggleRun() Returns void |