Hello,
SCENARIO :
I am building blocks on top of each other. Now when I play this block, I activate the rigid bodies on each block so that they obey the laws of physics. In order make building these blocks on top of each other easy, I have made an editor script to check for collisions which is this
private static bool CheckCollisionBetweenTwoColliders (Collider c1, Collider c2)
{
if(c1.bounds.Intersects(c2.bounds))
{ return true; }
else { return false; }
}
REQUIREMENT :
Now, lets say that the two colliders intersect - I want to adjust the colliders in such a way that they lay exactly on top of each other.
Is it possible?
Thank you for your time.
regards,
Karsnen.