CS::Physics::SoftBodyHelper Struct Reference
General helper class for CS::Physics::iSoftBody. More...
#include <ivaria/physics.h>
Static Public Member Functions | |
| static csPtr< iMeshFactoryWrapper > | CreateClothGenMeshFactory (iObjectRegistry *object_reg, const char *factoryName, iSoftBody *cloth, csVector2 scale=csVector2(1.0f)) |
| Create a genmesh from the given cloth soft body. | |
Detailed Description
General helper class for CS::Physics::iSoftBody.
Definition at line 814 of file physics.h.
Member Function Documentation
| static csPtr<iMeshFactoryWrapper> CS::Physics::SoftBodyHelper::CreateClothGenMeshFactory | ( | iObjectRegistry * | object_reg, | |
| const char * | factoryName, | |||
| iSoftBody * | cloth, | |||
| csVector2 | scale = csVector2 (1.0f) | |||
| ) | [inline, static] |
Create a genmesh from the given cloth soft body.
This may be useful eg if you created the soft body using a iSoftClothFactory. The genmesh will be double-sided, in order to have correct normals on both sides of the cloth (ie the vertices of the soft body will be duplicated for the genmesh). The duplication mode of the faces of the mesh generated is CS::Physics::MESH_DUPLICATION_CONTIGUOUS, that parameter can therefore be used e.g. in CS::Animation::iSoftBodyAnimationControl::SetSoftBody().
- Parameters:
-
object_reg The object registry factoryName The name of the factory to be created scale The scale to be applied on the UV mapping.
The documentation for this struct was generated from the following file:
- ivaria/physics.h
Generated for Crystal Space 2.1 by doxygen 1.6.1
