Bowling Game

This is an example of use of simscape multibody with spatial contacts force block.
1 Download
Updated 14 Nov 2024

View License

This example demonstrate the use of spatial contact force block on the simscape multibody environment.
When running the *prj file, it will populate the workspace with the necessary values. You can play with ball variables by changing the paramenters below on the file "BowlingParameters.m"
ball_initial_speed = 8; % in m/s, initial ball speed
ball_height_init = 50; % in cm, height the ball is dropped.
% 0 means ball in contact with the lane
ball_Y_pos = 0; % in cm, lateral displacement where the ball is shooted.
% 0 mean the middle of the lane. Range -100 to 100
ball_init_pos = 500; %in cm, its the initial position on the lane.
Several improvements can be made like change the pins design for a more representative one, improve colouring, but the point of this example is to show how to use the spatial contact force block.

Cite As

Flávio Luiz (2024). Bowling Game (https://www.mathworks.com/matlabcentral/fileexchange/175673-bowling-game), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2024b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0