|
Godot Nature of Code
1.2.0
Nature of Code implemented in Godot Engine
|
Simple verlet cloth. More...
Public Types | |
| enum class | PinModeEnum { None , TopCorners , Top , AllCorners } |
| Pin mode enum. More... | |
Public Member Functions | |
| VerletCloth (VerletWorld world, Vector2 topLeftPosition, Vector2 pointCount, float separation, PinModeEnum pinMode=PinModeEnum.TopCorners, float tearSensitivityFactor=2, float stiffness=1, bool drawPoints=false, float pointRadius=10f) | |
| Create a verlet cloth. More... | |
Simple verlet cloth.
Definition at line 9 of file VerletCloth.cs.
|
strong |
Pin mode enum.
| Enumerator | |
|---|---|
| None | No pin |
| TopCorners | Pin top corners |
| Top | Pin all top points |
| AllCorners | Pin all corners |
Definition at line 14 of file VerletCloth.cs.
|
inline |
Create a verlet cloth.
| world | Verlet world |
| topLeftPosition | Top-left position |
| pointCount | X/Y point count |
| separation | Separation |
| pinMode | Pin mode |
| tearSensitivityFactor | Distance factor required to break the cloth. Use -1 to create an unbreakable cloth. |
| stiffness | Stiffness of the cloth |
| drawPoints | Draw verlet points |
| pointRadius | Verlet point radius |
Definition at line 43 of file VerletCloth.cs.