steviet91 / furmulaone_source

Source repo for the car and track models
MIT License
0 stars 0 forks source link

Can get stuck in corners #17

Closed Thonners closed 4 years ago

Thonners commented 4 years ago

If driving close to the wall, the car can get stuck in a corner, as when it resets it's aligned to the preceding segment's wall, so the only option is to drive into the wall again.

Should be fixed by resetting further away from the walls

steviet91 commented 4 years ago

Could take a line normal to the collision line in the direction of the car and use this as an offset. We know which line we've collided with, is this with the updated collision rotation?

steviet91 commented 4 years ago

Fixed using the new centreline