PlayerController - digocorbellini/EGaDS-Open-Project GitHub Wiki

Description

PlayerController is a component attached to the player. It performs the default player movement (running, jumping, wall jumping, wall sliding, and air/double jumping). The class also contains some useful methods for determining the player's state (which direction they are facing, whether they are on the ground, etc.).

Properties

  • float MoveSpeed: The maximum left-right movement speed of the player, in tiles per second
  • float FallSpeed: The maximum fall speed of the player, in tiles per second
  • float WallSlideSpeed: The maximum wall slide speed of the player, in tiles per second
  • float JumpHeight: The jump height of the player in number of tiles
  • int AirJumpCount: Number of air jumps the player can do.
  • Facings Facing: The direction the player is facing (either left or right)
  • bool IsGrounded: True when the player is on the ground
  • bool IsOnWall: True when the player is on a wall
  • bool IsLeftOnWall: True when the player is on a wall to their left side
  • bool IsRightOnWall: True when the player is on a wall to their right side
⚠️ **GitHub.com Fallback** ⚠️