How do I make squares rotate when they collide at oblique angles?

1 view (last 30 days)
If I run two or three squares into each other in a simulation in MATLAB, what is a good way to code them to be hard-sided (avoid overlaps) and to rotate appropriately on collision if they start out with dissimilar random orientation and position?

Answers (0)

Categories

Find more on Physics in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!