MovementKit
Loading...
Searching...
No Matches
Jumping
Collaboration diagram for Jumping:

Topics

 Animation relateted
 

Functions

delegate void RiverExplorer.Player.PlayerControl.PayerNotInTheAir (Facing PlayerFacing, Moving PlayerMoving, bool OnGround)
 

Variables

bool RiverExplorer.Player.PlayerControl._PlayerPressedJump = false
 
bool RiverExplorer.Player.PlayerControl.CanJumpWhileInAir = false
 
bool RiverExplorer.Player.PlayerControl.EnableJumping = true
 
float RiverExplorer.Player.PlayerControl.JumpingForce = 75.0f
 
List< string > RiverExplorer.Player.PlayerControl.TagNamesOfGround
 

Properties

bool RiverExplorer.Player.PlayerControl.IsOnGround = false [get, private set]
 

Detailed Description

Jumping delegates and variables.

By setting EnableJumping to true, the player can jump.

By settings canJumpWhileInAir to true, the player can jump while in the air. The more they jump, the higher they will go.

This is activated when the player presses the jump button.

Parameters
PlayerFacingThe general direction the player is facing.
JumpVectorNon normalized jump vector. The normalized value has been applied, multiplied by any configured jump force and JumpVector was the result value used.

Function Documentation

◆ PayerNotInTheAir()

delegate void RiverExplorer.Player.PlayerControl.PayerNotInTheAir ( Facing PlayerFacing,
Moving PlayerMoving,
bool OnGround )

#include <G:/Unity/AssetStoreProjects/MovementKit/Assets/RiverExplorer/PlayerControl/Scripts/PlayerControl.cs>

Delegate Player is not in the air. They are on the ground, or colliding with an object is in TagNamesOfGround.

Parameters
PlayerFacingThe general direction the player is facing.
PlayerMovingThe direction the player is moving.
OnGroundTrue when the player is touching any object in TagNamesOfGround.
Note
Not in the air, might be from jump, or another reason.

Variable Documentation

◆ _PlayerPressedJump

bool RiverExplorer.Player.PlayerControl._PlayerPressedJump = false
private

The player pressed the JUMP action.

◆ CanJumpWhileInAir

bool RiverExplorer.Player.PlayerControl.CanJumpWhileInAir = false
private

When true, the player can jump while in the air. When false, the player can only jump when in contact with one of TagNamesOfGround entries.

◆ EnableJumping

bool RiverExplorer.Player.PlayerControl.EnableJumping = true

When true, the player can jump.

See also
IsOnGround
TagNamesOfGround
JumpingForce

◆ JumpingForce

float RiverExplorer.Player.PlayerControl.JumpingForce = 75.0f

The amount of force to apply to the jump.

Note
The more mass the player has in any Rigidbody, the less (or more) this value must be adjusted.

◆ TagNamesOfGround

List<string> RiverExplorer.Player.PlayerControl.TagNamesOfGround
private

Properties

◆ IsOnGround

bool RiverExplorer.Player.PlayerControl.IsOnGround = false
getprivate set

This is a read-only variable that is true, when the player is in contact with one of the entries in TagNamesOfGround.