Main Page   Class Hierarchy   Compound List   File List   Compound Members  

SimSimulator::Params Class Reference

Parameters for cloth simulator, as described in [BarWit98]. More...

#include <freecloth/simulator/simSimulator.h>

List of all members.

Public Methods

 Params ()

Public Attributes

Float _k_stretch
Float _k_shear
Float _k_bend_u
Float _k_bend_v
Float _k_damp
Float _k_drag
 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.

Float _b_u
 Stretch constant.

Float _b_v
 Stretch constant.

Float _g
 Gravitational acceleration.


Detailed Description

Parameters for cloth simulator, as described in [BarWit98].

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 133 of file simSimulator.h.


The documentation for this class was generated from the following file:
Generated on Fri May 2 16:51:32 2003 for Freecloth by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002