C# Class Nez.Verlet.Cloth

Inheritance: Composite
Show file Open project: prime31/Nez

Public Methods

Method Description
Cloth ( Vector2 topLeftPosition, float width, float height, int segments = 20, float stiffness = 0.25f, float tearSensitivity = 5, bool connectHorizontalParticles = true ) : Microsoft.Xna.Framework

creates a Cloth. If connectHorizontalParticles is false it will not link horizontal Particles and create a hair-like cloth

Method Details

Cloth() public method

creates a Cloth. If connectHorizontalParticles is false it will not link horizontal Particles and create a hair-like cloth
public Cloth ( Vector2 topLeftPosition, float width, float height, int segments = 20, float stiffness = 0.25f, float tearSensitivity = 5, bool connectHorizontalParticles = true ) : Microsoft.Xna.Framework
topLeftPosition Microsoft.Xna.Framework.Vector2 Top left position.
width float Width.
height float Height.
segments int Segments.
stiffness float Stiffness.
tearSensitivity float Tear sensitivity.
connectHorizontalParticles bool If set to true connect horizontal particles.
return Microsoft.Xna.Framework