Skip to content
Snippets Groups Projects

Feature physics

Merged Clinton Galbraith requested to merge feature_physics into develop
3 files
+ 18
5
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -65,7 +65,7 @@ public class PlayerBehavior : MonoBehaviour {
// Update is called once per frame
void Update () {
/* Accelerate the player with a movement vector based on this frames input */
playerBody.AddForce(frameMovement.normalized * acceleration));
playerBody.AddForce(frameMovement.normalized * acceleration);
/* Cap player speed with a velocity check */
if (playerBody.velocity.magnitude > maxSpeed)
Loading