Свойство | Type | Description | |
---|---|---|---|
triangleExpansion | float |
Méthode | Description | |
---|---|---|
AddForce ( Jitter.LinearMath.JVector force ) : void | ||
AddPressureForces ( float timeStep ) : void | ||
CalculateCenter ( ) : Jitter.LinearMath.JVector | ||
DoSelfCollision ( CollisionDetectedHandler collision ) : void | ||
Rotate ( Jitter.LinearMath.JMatrix orientation, Jitter.LinearMath.JVector center ) : void | ||
SetSpringValues ( SpringType type, float bias, float softness ) : void | ||
SetSpringValues ( float bias, float softness ) : void | ||
SoftBody ( List |
||
SoftBody ( int sizeX, int sizeY, float scale ) : System |
Creates a 2D-Cloth. Connects Nearest Neighbours (4x, called EdgeSprings) and adds additional shear/bend constraints (4xShear+4xBend).
|
|
Translate ( Jitter.LinearMath.JVector position ) : void | ||
Update ( float timestep ) : void |
Méthode | Description | |
---|---|---|
AddPointsAndSprings ( List |
||
GetEdges ( List |
public AddForce ( Jitter.LinearMath.JVector force ) : void | ||
force | Jitter.LinearMath.JVector | |
Résultat | void |
public AddPressureForces ( float timeStep ) : void | ||
timeStep | float | |
Résultat | void |
public CalculateCenter ( ) : Jitter.LinearMath.JVector | ||
Résultat | Jitter.LinearMath.JVector |
public DoSelfCollision ( CollisionDetectedHandler collision ) : void | ||
collision | CollisionDetectedHandler | |
Résultat | void |
public Rotate ( Jitter.LinearMath.JMatrix orientation, Jitter.LinearMath.JVector center ) : void | ||
orientation | Jitter.LinearMath.JMatrix | |
center | Jitter.LinearMath.JVector | |
Résultat | void |
public SetSpringValues ( SpringType type, float bias, float softness ) : void | ||
type | SpringType | |
bias | float | |
softness | float | |
Résultat | void |
public SetSpringValues ( float bias, float softness ) : void | ||
bias | float | |
softness | float | |
Résultat | void |
public SoftBody ( List |
||
indices | List |
|
vertices | List |
|
Résultat | System |
public SoftBody ( int sizeX, int sizeY, float scale ) : System | ||
sizeX | int | |
sizeY | int | |
scale | float | |
Résultat | System |
public Translate ( Jitter.LinearMath.JVector position ) : void | ||
position | Jitter.LinearMath.JVector | |
Résultat | void |