Property | Type | Description | |
---|---|---|---|
d | float | ||
damping | float | ||
k | float | ||
pointmass_a | |||
pointmass_b |
Method | Description | |
---|---|---|
Reset ( ) : void | ||
Spring ( |
||
Spring ( |
||
SpringForce ( |
||
SpringForce ( Vector2 &posA, Vector2 &velA, Vector2 &posB, Vector2 &velB, float springD, float springK, float damping, Vector2 &forceOut ) : void | ||
ToString ( ) : string |
public Spring ( |
||
pointmass_a | ||
pointmass_b | ||
k | float | |
damping | float | |
return | System |
public Spring ( |
||
pointmass_a | ||
pointmass_b | ||
k | float | |
damping | float | |
length | float | |
return | System |
public static SpringForce ( |
||
spring | ||
forceOut | Vector2 | |
return | void |
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 |