Examples demonstrating contact force modeling in Simscape Multibody
https://github.com/mathworks/Spatial-Contact-Force-Examples-Simscape-Multibody
You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
This repository contains a set of examples that demonstrate the Spatial Contact Force block and Planar Contact Force block. The examples cover:
- Solid-to-solid contact between parameterized solids like bricks, spheres, and cylinders
- Contact between CAD geometry including STEP files.
- Point Cloud definition for efficient contact modeling of complex shapes.
- Grid Surface modeling for efficient contact modeling with terrain.
- Custom force law definition including collision and friction forces.
Use the "Download from GitHub" button above to access files compatible with the current release of MATLAB.
For earlier MATLAB releases, use "Version History" tab above or these links:
Open the project file Spatial_Contact_Force_Examples.prj to get started.
To learn more about contact modeling with Simscape Multibody, please visit:
Learn how to use Simscape with
- Self-paced tutorials, including multi-domain systems, 3D mechanical systems, circuits, motors, and battery packs.
- Searching posts for the keyword "physical modeling".
- Stories from users: https://www.mathworks.com/solutions/physical-modeling.html
See also:
- Simscape™
- Simscape Battery™
- Simscape Driveline™
- Simscape Electrical™
- Simscape Fluids™
- Simscape Multibody™
This submission uses the S^2 Sampling Toolbox Anton Semechko (2022). Suite of functions to perform uniform sampling of a sphere (https://github.com/AntonSemechko/S2-Sampling-Toolbox), GitHub. Retrieved March 24, 2022.
Cite As
Steve Miller (2026). Multibody Contact Force Block Examples in Simscape Multibody (https://github.com/mathworks/Spatial-Contact-Force-Examples-Simscape-Multibody/releases/tag/26.1.1.7), GitHub. Retrieved .
General Information
- Version 26.1.1.7 (6.5 MB)
-
View License on GitHub
MATLAB Release Compatibility
- Compatible with R2020a to R2026a
Platform Compatibility
- Windows
- macOS
- Linux
To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.
