CrystalSpace

Public API Reference

CS::Physics::iSoftBodyFactory Struct Reference

Factory for the creation of instances of iSoftBody. More...

#include <ivaria/physics.h>

Inheritance diagram for CS::Physics::iSoftBodyFactory:

List of all members.

Public Member Functions

virtual csPtr< iSoftBodyCreateSoftBody ()=0
 Create a soft body.
virtual void GenerateBendingConstraints (size_t distance)=0
 Generate bending constraints between the vertices of this soft body.
virtual void SetAngularStiffness (float stiffness)=0
 Set area/angular stiffness coefficient [0,1]. The default value is 1.0f.
virtual void SetDamping (float damping)=0
 Set soft vs rigid hardness [0,1] (cluster only). The default value is 0.1f.
virtual void SetDrag (float drag)=0
 Set drag coefficient [0,+inf]. The default value is 0.0f.
virtual void SetLift (float lift)=0
 Set lift coefficient [0,+inf]. The default value is 0.0f.
virtual void SetLinearStiffness (float stiffness)=0
 Set linear stiffness coefficient [0,1]. The default value is 1.0f.
virtual void SetPressure (float pressure)=0
 Set pressure coefficient [-inf,+inf]. The default value is 0.0f.
virtual void SetShapeMatching (bool match)=0
 Set rigid contacts hardness [0,1]. The default value is 1.0f.
virtual void SetShapeMatchThreshold (float matching)=0
 Set pose matching coefficient [0,1]. The default value is 0.0f.
virtual void SetVolumeConversationCoefficient (float conversation)=0
 Set volume conversation coefficient [0,+inf]. The default value is 0.0f.
virtual void SetVolumeStiffness (float stiffness)=0
 Set volume stiffness coefficient [0,1]. The default value is 1.0f.

Detailed Description

Factory for the creation of instances of iSoftBody.

Definition at line 470 of file physics.h.


Member Function Documentation

virtual csPtr<iSoftBody> CS::Physics::iSoftBodyFactory::CreateSoftBody (  )  [pure virtual]

Create a soft body.

virtual void CS::Physics::iSoftBodyFactory::GenerateBendingConstraints ( size_t  distance  )  [pure virtual]

Generate bending constraints between the vertices of this soft body.

This can be used to make the body more rigid.

Parameters:
distance Maximum number of triangle edges that can exist between two vertices in order to have a constraint generated for this pair of vertices. Typical values are 2 or 3.
virtual void CS::Physics::iSoftBodyFactory::SetAngularStiffness ( float  stiffness  )  [pure virtual]

Set area/angular stiffness coefficient [0,1]. The default value is 1.0f.

virtual void CS::Physics::iSoftBodyFactory::SetDamping ( float  damping  )  [pure virtual]

Set soft vs rigid hardness [0,1] (cluster only). The default value is 0.1f.

Set soft vs kinetic hardness [0,1] (cluster only). The default value is 1.0f. Set soft vs soft hardness [0,1] (cluster only). The default value is 0.5f. Set soft vs rigid impulse split [0,1] (cluster only). The default value is 0.5f. Set soft vs rigid impulse split [0,1] (cluster only). The default value is 0.5f. Set soft vs rigid impulse split [0,1] (cluster only). The default value is 0.5f. Set damping coefficient [0,1]. The default value is 0.0f.

virtual void CS::Physics::iSoftBodyFactory::SetDrag ( float  drag  )  [pure virtual]

Set drag coefficient [0,+inf]. The default value is 0.0f.

virtual void CS::Physics::iSoftBodyFactory::SetLift ( float  lift  )  [pure virtual]

Set lift coefficient [0,+inf]. The default value is 0.0f.

virtual void CS::Physics::iSoftBodyFactory::SetLinearStiffness ( float  stiffness  )  [pure virtual]

Set linear stiffness coefficient [0,1]. The default value is 1.0f.

virtual void CS::Physics::iSoftBodyFactory::SetPressure ( float  pressure  )  [pure virtual]

Set pressure coefficient [-inf,+inf]. The default value is 0.0f.

virtual void CS::Physics::iSoftBodyFactory::SetShapeMatching ( bool  match  )  [pure virtual]

Set rigid contacts hardness [0,1]. The default value is 1.0f.

Set kinetic contacts hardness [0,1]. The default value is 0.1f. Set soft contacts hardness [0,1]. The default value is 1.0f. Set anchors hardness [0,1]. The default value is 0.7f. Set true in order to use pose matching. The default value is false

virtual void CS::Physics::iSoftBodyFactory::SetShapeMatchThreshold ( float  matching  )  [pure virtual]

Set pose matching coefficient [0,1]. The default value is 0.0f.

virtual void CS::Physics::iSoftBodyFactory::SetVolumeConversationCoefficient ( float  conversation  )  [pure virtual]

Set volume conversation coefficient [0,+inf]. The default value is 0.0f.

virtual void CS::Physics::iSoftBodyFactory::SetVolumeStiffness ( float  stiffness  )  [pure virtual]

Set volume stiffness coefficient [0,1]. The default value is 1.0f.


The documentation for this struct was generated from the following file:

Generated for Crystal Space 2.1 by doxygen 1.6.1