I know this may not be new to many people. I need an object bounce off another object. Well let me explain a few things first.
I'm making a space fairing game. I have an idea of adding gravitational aspect to the game. So, I installed the custom plugin for gravitation behavior (I found it in the forums). It's exactly what I need but the problem arose when I wanted the ship to bounce off asteroids and other ships I couldn't seem to get it right.
First I tried adding ball behavior and it seem to completely ruin the controls. So I tried the physics behavior, that too failed.
So I'm here to ask you guys if you know how to write an event script in CC to make the ship bounce off an asteroid or a wall? (maybe you could tell me the maths behind it too so I can try working out how to bounce two ships that collides).