C# Class hyades.physics.Spring

Exibir arquivo Open project: zfedoran/bubblebound Class Usage Examples

Public Properties

Property Type Description
d float
damping float
k float
pointmass_a PointMass
pointmass_b PointMass

Public Methods

Method Description
Reset ( ) : void
Spring ( PointMass pointmass_a, PointMass pointmass_b, float k, float damping ) : System
Spring ( PointMass pointmass_a, PointMass pointmass_b, float k, float damping, float length ) : System
SpringForce ( Spring &spring, Vector2 &forceOut ) : void
SpringForce ( Vector2 &posA, Vector2 &velA, Vector2 &posB, Vector2 &velB, float springD, float springK, float damping, Vector2 &forceOut ) : void
ToString ( ) : string

Method Details

Reset() public method

public Reset ( ) : void
return void

Spring() public method

public Spring ( PointMass pointmass_a, PointMass pointmass_b, float k, float damping ) : System
pointmass_a PointMass
pointmass_b PointMass
k float
damping float
return System

Spring() public method

public Spring ( PointMass pointmass_a, PointMass pointmass_b, float k, float damping, float length ) : System
pointmass_a PointMass
pointmass_b PointMass
k float
damping float
length float
return System

SpringForce() public static method

public static SpringForce ( Spring &spring, Vector2 &forceOut ) : void
spring Spring
forceOut Vector2
return void

SpringForce() public static method

public static SpringForce ( Vector2 &posA, Vector2 &velA, Vector2 &posB, Vector2 &velB, float springD, float springK, float damping, Vector2 &forceOut ) : void
posA Vector2
velA Vector2
posB Vector2
velB Vector2
springD float
springK float
damping float
forceOut Vector2
return void

ToString() public method

public ToString ( ) : string
return string

Property Details

d public_oe property

public float d
return float

damping public_oe property

public float damping
return float

k public_oe property

public float k
return float

pointmass_a public_oe property

public PointMass,hyades.physics pointmass_a
return PointMass

pointmass_b public_oe property

public PointMass,hyades.physics pointmass_b
return PointMass