Godot Nature of Code
1.2.0
Nature of Code implemented in Godot Engine
|
Simple verlet cluster. More...
Public Member Functions | |
VerletCluster (VerletWorld world, Vector2 centerPosition, int pointCount, float diameter, float gravityScale=1, float tearSensitivityFactor=-1, float stiffness=0.1f, bool drawPoints=true, float pointRadius=10f) | |
Create a verlet cluster. More... | |
Public Attributes | |
List< VerletPoint > | Points |
Cluster points More... | |
Simple verlet cluster.
Definition at line 9 of file VerletCluster.cs.
|
inline |
Create a verlet cluster.
world | Verlet world |
centerPosition | Center position |
pointCount | Point count |
diameter | Cluster diameter |
gravityScale | Gravity scale |
tearSensitivityFactor | Distance factor required to break the cloth. Use -1 to create an unbreakable cloth. |
stiffness | Stiffness of the cloth |
drawPoints | Draw points |
pointRadius | Verlet point radius |
Definition at line 26 of file VerletCluster.cs.
List<VerletPoint> VerletPhysics.VerletCluster.Points |
Cluster points
Definition at line 12 of file VerletCluster.cs.