segabl / gdd2017-homeless

See the world through different eyes
2 stars 0 forks source link

Path finding at obstacles #25

Closed cfkh closed 6 years ago

cfkh commented 6 years ago

When coliding with an obstacle the Main Character should slide along the obstacles edges.

segabl commented 6 years ago

If there isn't an already existing way of doing this it may be implemented as checking directions to the left and right of the direction the player wants to walk in that's blocked up to a maximum of 90 degrees. choose the first direction that allows movement without a collision.