![]() |
Public API Reference |
![]() |
General helper class for CS::Physics::Bullet::iSoftBody. More...
#include <ivaria/bullet.h>
Static Public Member Functions | |
static csPtr< iMeshFactoryWrapper > | CreateClothGenMeshFactory (iObjectRegistry *object_reg, const char *factoryName, iSoftBody *cloth) |
Create a genmesh from the given cloth soft body. |
General helper class for CS::Physics::Bullet::iSoftBody.
static csPtr<iMeshFactoryWrapper> CS::Physics::Bullet::SoftBodyHelper::CreateClothGenMeshFactory | ( | iObjectRegistry * | object_reg, |
const char * | factoryName, | ||
iSoftBody * | cloth | ||
) | [inline, static] |
Create a genmesh from the given cloth soft body.
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::Bullet::MESH_DUPLICATION_CONTIGUOUS, that parameter can therefore be used e.g. in CS::Animation::iSoftBodyAnimationControl::SetSoftBody().