Skip to content

IGME-RIT/physics-spring-spiderweb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Documentation & Tutorial Author: Sanketh Bhat, 2019

This tutorial was designed for Visual Studio 2017 / 2019 If the solution does not compile, retarget the solution to a different version of the Windows SDK. If you do not have any version of the Windows SDK, it can be installed from the Visual Studio Installer Tool

Spring Spiderweb

An interactive OpenGL code example showing a single-threaded implementation of a spring-based spiderweb. You can click and drag the points around and see what happens (do not drag too far or the physics will break) We use Hooke's Law to simulate spring motion dynamics and we damp the movement with a float multiplication. We use point-mass kinematic bodies as well, that use RK4 integration to calculate their movement vectors. RK4 integrator - https://github.com/IGME-RIT/physics-RK4-Integrator-VisualStudio Springs - https://github.com/IGME-RIT/physics-forceSpring-VisualStudio