VGDC 2025-2026 Club Game
Loading...
Searching...
No Matches
PlayerMovementController Class Reference

Handles all core movement logic for the player: More...

Inheritance diagram for PlayerMovementController:
Collaboration diagram for PlayerMovementController:

Data Fields

Vector2 movement

Events

Action< bool, float > GroundedChanged
 Fired when grounded ↔ airborne; float = landing impact strength.
Action Jumped
 Fired the exact frame a jump is executed.

Detailed Description

Handles all core movement logic for the player:

– Reads per-frame input (via InputManager)

– Applies horizontal acceleration / deceleration

– Implements variable-height jumping with coyote-time and jump-buffer

– Calculates custom gravity and grounding logic

This script does not animate or play VFX/SFX directly; those concerns live in PlayerAnimator.

Field Documentation

◆ movement

Vector2 PlayerMovementController.movement

Event Documentation

◆ GroundedChanged

Action<bool, float> PlayerMovementController.GroundedChanged

Fired when grounded ↔ airborne; float = landing impact strength.

◆ Jumped

Action PlayerMovementController.Jumped

Fired the exact frame a jump is executed.


The documentation for this class was generated from the following file: