Create your First Simulation - simphysoftwares/SimPHY-docs GitHub Wiki
Let's create a simulation to understand what Simple Harmonic Motion is.
- Make a rigid ground by selecting the ‘Infinite Plane’ icon with mouse in the Bodies menu.
- Default gravity should be 9.8 m/s2 but if it's not, set gravity by yourself.
- Then select the 'Rectangle' icon and drag mouse while pressing left button to make 2D block.
- Use 'Spring' Joint from Joints menu to attach block with the background.
- Also, attach a tracer and a graph from the 'Visualisation' menu to make the simulation more informative.
- Click ‘Play Simulation’ to see the motion as below.
- You can decrease the simulation speed to view the motion better.