![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/435203/image.png)
How to get friction forces and support forces as vectors from Spatial Contact Force?
2 views (last 30 days)
Show older comments
Hello. I use 'Spatial Contact Force' to model the interaction between a ball and a plane in Simscape Multibody. The output of contact force is scalar. How can I get the vectors of normal support forces and friction forces? Thanks!
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/424453/image.jpeg)
0 Comments
Answers (1)
Vasco Lenzi
on 30 Nov 2020
hi XiaoXing
th output of the block are just magnitude. You can "create" a vecotr yourself by combining a Transform Sensor (to get the angles and rotations between two frames) with the output of the Spatial Contact Forces and some trigonometry.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/435203/image.png)
0 Comments
See Also
Categories
Find more on Applications in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!