Commit e41ebd2d by Tim Reiter
parents 05b46512 25fa1ed5
...@@ -72,11 +72,6 @@ public class PlayerControl : MonoBehaviour ...@@ -72,11 +72,6 @@ public class PlayerControl : MonoBehaviour
void onControllerCollider(RaycastHit2D hit) void onControllerCollider(RaycastHit2D hit)
{ {
//// bail out on plain old ground hits
//if (hit.normal.y == 1f)
// return;
Rigidbody2D body = hit.collider.gameObject.GetComponent<Rigidbody2D>(); Rigidbody2D body = hit.collider.gameObject.GetComponent<Rigidbody2D>();
if (body) if (body)
{ {
...@@ -84,12 +79,8 @@ public class PlayerControl : MonoBehaviour ...@@ -84,12 +79,8 @@ public class PlayerControl : MonoBehaviour
body.AddForce(_controller.getDirectionOfMovement() * pushForce); body.AddForce(_controller.getDirectionOfMovement() * pushForce);
//TODO set is dashing to false //TODO set is dashing to false
} }
// logs any collider hits
//Debug.Log( "flags: " + _controller.collisionState + ", hit.normal: " + hit.normal );
} }
void Update() void Update()
{ {
// grab our current velocity to use as a base for all calculations // grab our current velocity to use as a base for all calculations
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment