Hey, I've had this stuck for a few months and have not been able to figure out collisions.
It's a top-down 360 spaceship movement with a loose-drifting movement and I need the ship to bounce correctly.
I have 8 Variables for the ship.
MovSpeed = How much push the engines are giving
XPos = X Position
YPos = Y Position
XMov = The movement from the engines along the X plane
YMov = The movement from the engines along the Y plane
XMovEx = The movement from external forces along the X plane
YMovEx = The movement from external forces along the Y plane
I needs to make the ship bounce when it collides with another object. But not some arrbitrary amount. If a heavy & slow object pushes against the ship then the ship gets moved out of the way (Like a bulldozer) or if a extremely fast yet small object hits then the appropriate force would be applied to the ship.
If anyone can help me on this that'd be just outstanding!
I hope I made some sense.