Copyright 2023 The MathWorks, Inc.
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.
- Point cloud definition to evenly distribute points over areas and volume surfaces.
- Convex hull visualization by generating an STL of the hull for points and STL geometry.
Open the project file Spatial_Contact_Force_Examples.prj to get started.
View on File Exchange:
You can also open in MATLAB Online:
To learn more about contact modeling with Simscape Multibody, please visit:
-
Product Capabilities:
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.