![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1576237/image.png)
Simscape Multibody: How to model spatial contact between two objects using point clouds?
17 次查看(过去 30 天)
显示 更早的评论
Hello Everyone,
I'm trying to get the hang of using point clouds around geometry to model contact behavior/forces when objects collide. Right now, I'm starting with a simple model: a sphere dropping from a height onto a sphere fixed in space. I have a point cloud surrounding each sphere. I want to use Spatial Contact Force blocks (or some other method) to explore the collision between the two bodies.
My first foray into using point clouds was dropping two cubes with points on each corner onto a Grid Surface. This was fairly straightforward and I was able to see what I expected, which was a dice-on-a-table kind of effect.
I seem to be having trouble, however, connecting things together to model object-to-object interactions, such as the spheres I described above. Generally I am running into errors such as " 'Spatial Contact Force1' is not connected through its B port to a valid geometry. Resolve this issue in order to simulate the model." I have tried a few different combinations of connecting the Spatial Contact Force block, adding a Spatial Contact to each sphere, etc.
Am I missing something? Perhaps mis-applying the Spatial Contact Force blocks? Another method entirely?
Any suggestions would be helpful! Screenshots of model setup and block diagram attached.
Thank You!
2 个评论
Jongil Lee
2023-12-26
Dear Kylen
You need to modify the one of ball from your model as below. The Spatial Contact Force block need the contact between a pair of geometries in 3-D space.
https://www.mathworks.com/help/releases/R2023b/sm/ref/spatialcontactforce.html
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1576237/image.png)
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Applications 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!