-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
minor reworkminor overhaulminor overhaul
Description
MagicMittelalterGame/Assets/Scripts/Character/CharacterController.cs
Lines 71 to 82 in bdcecb5
| velocity *= speed; | |
| velocity.y = 0; | |
| _rigidbody.AddForce(velocity, ForceMode.Impulse); | |
| // make sure, that the player is not able to be faster then the momentarily speed level is allowing him to be | |
| velocity = _rigidbody.velocity; | |
| velocity.y = 0; | |
| velocity = velocity.normalized * Mathf.Clamp(velocity.magnitude, 0, speed); | |
| velocity.y = _rigidbody.velocity.y; | |
| _rigidbody.velocity = velocity; |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
minor reworkminor overhaulminor overhaul