Simscape Multibody Mini Golf Library

Components for modeling a mini golf course. Contact forces are demonstrated on a 9-hole course.
2.3K Downloads
Updated 25 Dec 2025
This library contains components for modeling a mini golf course. It includes fixed walls, moving walls, posts, spinning obstacles, putting head, and the hole. A nine-hole course is provided, showing how you can easily build up a set of components and reuse them in different designs. A control system helps you guide the putter to the right position and shoots the ball towards the hole. This example uses the Simscape Multibody Contact Forces Library.
Please read the README.md file to get started.
Use the "Download" button above to get files compatible with the latest release of MATLAB.
Use the links below to get files compatible with earlier releases of MATLAB.
See how to defining bodies in Simscape Multibody by watching this video (5 min):
Learn more about multibody simulation with Simscape Multibody by watching this webinar
Find other Simscape examples by searching posts for the keyword "physical modeling"
Try these free, hands-on tutorials to learn how to use Simscape:
To learn more about modeling and simulation with Simscape, please visit:
Product Capabilities:

Cite As

Steve Miller (2026). Simscape Multibody Mini Golf Library (https://github.com/mathworks/Simscape-Multibody-Mini-Golf/releases/tag/25.2.5.0), GitHub. Retrieved .

MATLAB Release Compatibility
Created with R2025b
Compatible with R2015a to R2025b
Platform Compatibility
Windows macOS Linux
Version Published Release Notes
25.2.5.0

See release notes for this release on GitHub: https://github.com/mathworks/Simscape-Multibody-Mini-Golf/releases/tag/25.2.5.0

25.1.5.0

See release notes for this release on GitHub: https://github.com/mathworks/Simscape-Multibody-Mini-Golf/releases/tag/25.1.5.0

24.2.5.0

See release notes for this release on GitHub: https://github.com/mathworks/Simscape-Multibody-Mini-Golf/releases/tag/24.2.5.0

24.1.5.0

See release notes for this release on GitHub: https://github.com/mathworks/Simscape-Multibody-Mini-Golf/releases/tag/24.1.5.0

23.2.5.0

See release notes for this release on GitHub: https://github.com/mathworks/Simscape-Multibody-Mini-Golf/releases/tag/23.2.5.0

23.1.5.0

See release notes for this release on GitHub: https://github.com/mathworks/Simscape-Multibody-Mini-Golf/releases/tag/23.1.5.0
See release notes for this release on GitHub: https://github.com/mathworks/Simscape-Multibody-Mini-Golf/releases/tag/23.1.5.0

22.2.5.0

See release notes for this release on GitHub: https://github.com/mathworks/Simscape-Multibody-Mini-Golf/releases/tag/22.2.5.0

22.1.5.0

See release notes for this release on GitHub: https://github.com/mathworks/Simscape-Multibody-Mini-Golf/releases/tag/22.1.5.0

21.2.5.0

See release notes for this release on GitHub: https://github.com/mathworks/Simscape-Multibody-Mini-Golf/releases/tag/21.2.5.0

21.1.5.0

See release notes for this release on GitHub: https://github.com/mathworks/Simscape-Multibody-Mini-Golf/releases/tag/21.1.5.0

20.2.5.0

See release notes for this release on GitHub: https://github.com/mathworks/Simscape-Multibody-Mini-Golf/releases/tag/20.2.5.0

20.1.5.0

See release notes for this release on GitHub: https://github.com/mathworks/Simscape-Multibody-Mini-Golf/releases/tag/20.1.5.0

19.2.5.0

See release notes for this release on GitHub: https://github.com/mathworks/Simscape-Multibody-Mini-Golf/releases/tag/19.2.5.0

19.1.4.1

See release notes for this release on GitHub: https://github.com/mathworks/Simscape-Multibody-Mini-Golf/releases/tag/19.1.4.1

18.2.4.1

See release notes for this release on GitHub: https://github.com/mathworks/Simscape-Multibody-Mini-Golf/releases/tag/18.2.4.1

18.1.4.1

See release notes for this release on GitHub: https://github.com/mathworks/Simscape-Multibody-Mini-Golf/releases/tag/18.1.4.1

17.2.4.1

See release notes for this release on GitHub: https://github.com/mathworks/Simscape-Multibody-Mini-Golf/releases/tag/17.2.4.1

17.1.3.7

See release notes for this release on GitHub: https://github.com/mathworks/Simscape-Multibody-Mini-Golf/releases/tag/17.1.3.7

16.2.3.5

See release notes for this release on GitHub: https://github.com/mathworks/Simscape-Multibody-Mini-Golf/releases/tag/16.2.3.5

16.1.3.3

See release notes for this release on GitHub: https://github.com/mathworks/Simscape-Multibody-Mini-Golf/releases/tag/16.1.3.3

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.