Simple cloth simulation with OpenGL.
ESC
ExitZ
Node ModeX
Spring ModeC
Cloth ModeW
S
A
D
Move camera up / down / left / rightQ
E
Move camera closer / fartherT
PauseR
ResumeMOUSE_BUTTON_LEFT
Click to apply wind force↑
↓
←
→
Apply wind forceO
Free left pinP
Free right pinstruct Vec2
struct Vec3
struct Vertex
class Node
class Spring
class Cloth
struct Ground
class Sphere
struct Ball
class Program
struct Camera
struct Light
struct ClothRender
struct SpringRender
struct ClothSpringRender
struct RigidRender
struct GroundRender
struct BallRender