Looking for some ideas, avoid penetration of bodys

Hi,

I busting my head here, tryng to find a solution for this, so i’m here fishing for some ideas :slight_smile:
I have 2 ships, this ships can go forward or rotate.
To select a ship, i click on it, and to move it or rotate it, and click anywhere else.
However, if 2 ships are parallel to each other, when i choose one of them, and i tell it to rotate, the ship will rotate however penetrates the other one, (rotates over it), and by doing this, ruins all the ilusion.
The way i have been avoiding it, is i just have a bounding box around them (as a trigger), and once the body of one ship, enters the bouding box of the other, i simply stop the rotation.
However to do this, i need to have this command to stop, in both OnTriggerEnter and on OnTriggerStay.
Altough this works, to issue a command to move (after the ship stoped), it will be extremely hard to do, as for both of them, they are still in contact(the trigger and the body).

Anyways, enought of my babbling.
Anyone has any idea of a system that could be implemented, that would avoid ships of colliding with each other ?

thanks,
Bruno

Well, if they had colliders, a rigidbody attached, and turned using angular velocity, the physics engine would take care of that…