How do I model collision detection in SimMechanics 1.1 (R13)?

13 views (last 30 days)
How do I model collision detection in SimMechanics 1.1 (R13)?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
In order to simulate collision detection and reaction, you have to model both the resultant motion forces and the shapes of the colliding surfaces.
In SimMechanics you can model the center of mass of an object and the point where the force is applied. However, there is no way to define the exact shape of a body( ie: no surface modelling is possible).
Currently, the best available method is to calculate the reaction to particular known input forces (ie: implement the reaction forces).
For an example implementation on modelling reaction forces, review the Crash Test Dummy demo available with SimMechanics. The model makes use of the Virtual Reality Toolbox (VR scene). The model is named:
The attached AVI file below (crash_test_dummy.avi) illustrates the result of the mech_airbag_vr.mdl model simulation.

More Answers (1)

Foad Sojoodi Farimani
Foad Sojoodi Farimani on 2 Feb 2017
you can also model that as an elastic behaviour. if the shapes of two objects are simple enough you can define an interaction force which is equivalent of an elastic coefficient and the interference of two objects. please check the simulink model in the attachments.


Find more on Simscape Multibody 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!