Hi, I'm trying to create a simple game prototype from the Flying template provided with unreal engine 4 (3rd person spaceship game).
Basically I just took the Blueprints version of the template and change the control schemes of the spaceship to suite my needs.
Now I'm trying to figure out how to handle collisions with obstacles, in the template these are handled by changing the speed to 0 which of course is not good enough.
I'm thinking that destroying the ship would make the game too hard so I figured I could reduce the health and bounce the ship into some direction.
The problem is that I'm not sure what the right way to approach this from physics perspective, in what direction and what force would you bounce the ship? maybe divert it on the other direction in yaw axis? or maybe in a direction which is perpendicular to the surface it hits?
I can't think of a good example for a game that implements this mechanic but I guess there are many, I just can't name one right now, maybe rogue squadron?
Anyway what do you think would work best here? how would you go and implement this mechanic?
I'm working in UE4 blueprints though I might convert it to C++ so the implementation doesn't have to be UE4 specific, I'm just trying to figure out how to approach it.
Thanks,
Amit