stenobot / Marimo

A game called Marimo
0 stars 0 forks source link

RobotController: Adjust Raycasts for collision when Robot is on edges #28

Closed stenobot closed 7 years ago

x00l commented 7 years ago

On close inspection the RayCasts for slope detection actually work pretty well at their current distance, widening them makes the player think it's on slopes prematurely. We could possibly explore extending the length and tweaking the logic a little if we want to robot to lean over edges. The not being able to jump on edges problem is fixed by 43a0689, I changed RobotController to using Collider2D.IsTouchingLayers() instead of Physics2D.OverlapCircle()