How do I keep to solid objects from passing through each other

I am trying to set up a simulation of a bouncing ball for my students, yet my ball keeps passing through my floor how do I prevent this? I have attached my model
thanks in advanced
george marrash

2 件のコメント

Koen van den Beuken
Koen van den Beuken 2016 年 11 月 28 日
I am dealing with a simular problem. How did you solved it?
Furkan ARPACI
Furkan ARPACI 2019 年 12 月 17 日
編集済み: Furkan ARPACI 2019 年 12 月 17 日
I'm assuming you have already put a sphere-to-plane block in your system. If you haven't then you must define a contact force between the plane and the sphere.Then double click on the Sphere to Plane Force block , set the contact stiffness parameter(under contact tab) to relatively high value(i.e.1e10N/m would be enough i guess).

サインインしてコメントする。

回答 (3 件)

Rajeeb Barma
Rajeeb Barma 2016 年 6 月 19 日

0 投票

I have the same problem. What is the solution ?? Please help.
Kalana Vidurath
Kalana Vidurath 2018 年 11 月 22 日

0 投票

Were you able to fix this? i used contact forces library but yet it passes through each other. I dont know what i did wrong. can anyone give me any tips for using contact forces library correctly. i followed the shere on table(plane) example?

5 件のコメント

lee c
lee c 2018 年 11 月 22 日
If you use the contact forces library developped by steve.miller, the contact stiff and damp will affect the simulation a lot. Please adjust these two parameters according you model.
Kalana Vidurath
Kalana Vidurath 2018 年 11 月 23 日
編集済み: Kalana Vidurath 2018 年 11 月 23 日
i tried adjusting. initially it floated upwards, and at some point (stiffness 10, damping 0.01) it stopped at going upwards but stayed at one place. if i reduced further it would accelerate downards(still pass through). so im stuck again. sphere to plane blocks radius is equl to the actual sphere radius. what i want is to ball to fall on to the plane and stop there
lee c
lee c 2018 年 11 月 28 日
I am sorry to answer too late, the stiffness and damping you used (stiffness 10, damping 0.01) is still too small for the contact, in my opinion. See the doc in the readme. My email is toohzy@live.com.
Kalana Vidurath
Kalana Vidurath 2018 年 11 月 28 日
i figured it out. the issue was not in the stiffness or damping. it was in the coordinate frame of planar surface. it was horizontal and the contacts were supposed to be vertical.
Thank you for your time.
Rajat Mishra
Rajat Mishra 2020 年 10 月 4 日
Can u please share the code

サインインしてコメントする。

カテゴリ

質問済み:

2014 年 7 月 3 日

コメント済み:

2020 年 10 月 4 日

Community Treasure Hunt

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

Start Hunting!

Translated by