Свойство | Type | Description | |
---|---|---|---|
d | float | ||
damping | float | ||
k | float | ||
pointmass_a | |||
pointmass_b |
Méthode | 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 | |
Résultat | System |
public Spring ( |
||
pointmass_a | ||
pointmass_b | ||
k | float | |
damping | float | |
length | float | |
Résultat | System |
public static SpringForce ( |
||
spring | ||
forceOut | Vector2 | |
Résultat | 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 | |
Résultat | void |