Свойство | Тип | Описание | |
---|---|---|---|
d | float | ||
damping | float | ||
k | float | ||
pointmass_a | |||
pointmass_b |
Метод | Описание | |
---|---|---|
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 | |
Результат | System |
public Spring ( |
||
pointmass_a | ||
pointmass_b | ||
k | float | |
damping | float | |
length | float | |
Результат | System |
public static SpringForce ( |
||
spring | ||
forceOut | Vector2 | |
Результат | 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 | |
Результат | void |