currently I am making a game where the player can move his tank left and right, where I want it to be able to go uphill and downwards.
Now I've been searching the forums and seen many examples, but what I can't find is any example that works really well.
Most examples have this 'bug' in them that if the player moves at low speed for example, the player bugs out unable for the system to decide which angle the player should be at. So you get this buggy superfast player flickering between the two angles.
Also should I set the collision polygon to the bounding box of the tank? I tried making it very narrow as sometimes it would work better. But what's the best setting?
Same for the offset. Is '10' the best setting for the offset? I don't quite understand what it does.
And should I use every tick or rather every 0.01 seconds?
This is what I got:
I fiddled around wiith various settings but nothing perfect came out of it.
And then there's the solid blocks. I tried leaving a little space between them, or overlap more, I really want the player to be able to smoothly drive the terrain up and down, back and forth.
As you can see there are a lot of things going on. Did anyone find a really good example or made one I could use for this type of game?
P.S. The speed and acceleration of the player tank also seems to play a role in how easy the tank climbs the hill (less buggy).
I'd be very grateful if someone could help me out!
Regards - R