BomberUnits
...a Unity learning project
MoveHandler Class Reference

Responsible for the character movement, based on the input. More...

+ Collaboration diagram for MoveHandler:

Public Member Functions

 MoveHandler (CharacterController ctrl, CharSettings charSettings, MovementState moveState, InputState inputState)
 
void Run ()
 

Private Member Functions

void HandleMovement ()
 This variant of movement handling sets the position directly, which gives a very direct feeling. More...
 

Private Attributes

CharacterController ctrl
 
CharSettings charSettings
 
MovementState moveState
 
InputState inputState
 

Detailed Description

Responsible for the character movement, based on the input.

Definition at line 7 of file MoveHandler.cs.

Member Function Documentation

◆ HandleMovement()

void HandleMovement ( )
inlineprivate

This variant of movement handling sets the position directly, which gives a very direct feeling.

The rotation is more of a visual thing, changed gradually (slerp) towards the movement direction. This is to be called only for the owning client. Note: The code bits for jumping are left in there, albeit commented, for future use.

Definition at line 39 of file MoveHandler.cs.


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