Code covered by the BSD License  

Highlights from
SimMechanics Mini Golf Library


5.0 | 2 ratings Rate this file 44 Downloads (last 30 days) File Size: 2.83 MB File ID: #36541
image thumbnail

SimMechanics Mini Golf Library



07 May 2012 (Updated )

Components for modeling a mini golf course. Contact forces are demonstrated on a 9-hole course.

| Watch this File

File Information

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 SimMechanics Contact Forces Library. Each of the holes shows different applications of these contact forces.
Please read the README.txt file to get started.

To see how to defining bodies in SimMechanics, watch this video (5 min):

To learn more about multibody simulation with SimMechanics, please watch the webinar, “Multibody Simulation with SimMechanics".

To find other physical modeling examples, search for posts with the keyword "physical modeling"

To learn more about MathWorks Physical Modeling Products, go to:


This file inspired Sim Mechanics Contact Forces Library.

Required Products SimMechanics
MATLAB release MATLAB 8.3 (R2014a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (3)
23 Jul 2014 Arielle  
10 Jan 2013 Steve Miller

Aditya -- no low pass filter is required, so no I'm not using one. Some form of delay would be required if the formulation I used created an algebraic loop in Simulink, but the way I modeled it no loop is created.

09 Jan 2013 Aditya

Hi Steve,
Great model.
In the contact force model it does not seem like you are using the low pass filter? Is that the case.


25 Sep 2012

Added an updated version for R2012b and beyond.

15 Jul 2013

Updated link to "Defining Rigid Bodies" video. No changes to files in the submission.

17 Apr 2014

Fixed webinar link.

05 Aug 2014

Updated to use new SimMechanics Contact Forces Library.

Contact us