Oriented Bounding box collision behavior - How to achieve this ?

Started by
1 comment, last by phlp 2 years, 5 months ago

Do someone has any ideas of how to achieve this kind of behavior ?
See it in animated gif :

- The user can drag a box using the mouse and when a collision occur, the box stop moving and snap to the other box.

https://i.ibb.co/m5Z1yK6/test.gif

Is there any links to the theory used for this kind of behavior ?

(I want to achieve this using Unity but any kind of sample / source is ok).

Advertisement

What do you have so far?

Everything you need to do this (beyond basic motion of the box) should be available in the Collider and Collision documentation.

My itch.io page, just game jams so far

This topic is closed to new replies.

Advertisement