#include <freecloth/simulator/simSimulator.h>
Public Attributes | |
Float | _k_stretch |
Float | _k_shear |
Float | _k_bend_u |
Float | _k_bend_v |
Float | _k_damp |
Float | _k_drag |
Float | _b_u |
Stretch constant. | |
Float | _b_v |
Stretch constant. | |
Float | _g |
Gravitational acceleration. |
The stretch, shear, and bend parameters control the strength of the associated internal forces. For example, a higher _k_stretch value makes the internal stretch forces stronger, and hence makes the cloth harder to stretch. The bend force can be controlled independently in u and v. Generally, stretch forces should be very, very strong, and bend forces should be very weak.
The damp parameter controls the strength of damping forces. A higher damping value will make the cloth come to rest quicker, while a lower value will allow it to oscillate back and forth before coming to rest.
The b_u and b_v values allow the client to force stretch/compression of the cloth. They're not very useful at present; they should really be spatially varying to be useful.
The g parameter is the constant for acceleration due to gravity, by default 9.81 m/s^2.
Definition at line 131 of file simSimulator.h.
|
Drag constant. Technically, this is 0.5 * C_D * rho, where rho is density of the medium and C_D is the drag coefficient. We combine this into a single constant for simplicity. Definition at line 161 of file simSimulator.h. Referenced by SimSimulator::preSubSteps(), and ClothApp::uiReceived(). |