I'm making a space type game, sort of Lunar Lander/Jetpack/Thrust sort of feel.
I'm going to have the ship fly inside a cavern for instance and it will take damage if it hits a surface too hard - none of this part is a problem.
However, as I'm using custom movement, I can't work out how to get the ship to bounce off at a shallow angle when colliding. I thought about using the platform behavior but I couldn't get it working for flight as I wanted. I can get it to reverse direction to keep it out of the solid but it goes directly backwards and I want something more like skipping a stone on water.
The inverse angle of impact would be ideal but it needs to work on vertical surfaces, or whatever the particular piece of ground may be angle at.
Any ideas?