CrystalSpace

Public API Reference

CS::Physics::iSoftClothFactory Struct Reference

Used to create a two-dimensional softbody, typically a cloth. More...

#include <ivaria/physics.h>

Inheritance diagram for CS::Physics::iSoftClothFactory:

List of all members.

Public Member Functions

virtual const csVector3GetCorners () const =0
 Get the four corners of the cloth.
virtual bool GetDiagonals () const =0
 Get whether or not there must be diagonal segments in the cloth.
virtual void GetSegmentCounts (size_t &countH, size_t &countV) const =0
 Get the two segment counts along the two primary axes.
virtual void SetCorners (csVector3 topLeft, csVector3 topRight, csVector3 bottomLeft, csVector3 bottomRight)=0
 Set the four corners of the cloth.
virtual void SetDiagonals (bool d)=0
 Set whether or not there must be diagonal segments in the cloth.
virtual void SetSegmentCounts (size_t countH, size_t countV)=0
 Set the two segment counts along the two primary axes.

Detailed Description

Used to create a two-dimensional softbody, typically a cloth.

See also:
CS::Physics::SoftBodyHelper

Definition at line 576 of file physics.h.


Member Function Documentation

virtual const csVector3* CS::Physics::iSoftClothFactory::GetCorners (  )  const [pure virtual]

Get the four corners of the cloth.

virtual bool CS::Physics::iSoftClothFactory::GetDiagonals (  )  const [pure virtual]

Get whether or not there must be diagonal segments in the cloth.

Diagonal segments will make the cloth more rigid.

virtual void CS::Physics::iSoftClothFactory::GetSegmentCounts ( size_t &  countH,
size_t &  countV 
) const [pure virtual]

Get the two segment counts along the two primary axes.

Parameters:
countH Number of horizontal segments in the cloth.
countV Number of vertical segments in the cloth.
virtual void CS::Physics::iSoftClothFactory::SetCorners ( csVector3  topLeft,
csVector3  topRight,
csVector3  bottomLeft,
csVector3  bottomRight 
) [pure virtual]

Set the four corners of the cloth.

Parameters:
topLeft The position of the top left corner.
topRight The position of the top right corner.
bottomLeft The position of the bottom left corner.
bottomRight The position of the bottom right corner.
withDiagonals Whether there must be diagonal segments in the cloth or not. Diagonal segments will make the cloth more rigid.
Remarks:
You must call SetSoftBodyWorld() prior to this.
virtual void CS::Physics::iSoftClothFactory::SetDiagonals ( bool  d  )  [pure virtual]

Set whether or not there must be diagonal segments in the cloth.

Diagonal segments will make the cloth more rigid.

virtual void CS::Physics::iSoftClothFactory::SetSegmentCounts ( size_t  countH,
size_t  countV 
) [pure virtual]

Set the two segment counts along the two primary axes.

Parameters:
countH Number of horizontal segments in the cloth.
countV Number of vertical segments in the cloth.

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

Generated for Crystal Space 2.1 by doxygen 1.6.1