CrystalSpace

Public API Reference

CS::Physics::SoftBodyHelper Struct Reference

General helper class for CS::Physics::Bullet::iSoftBody. More...

#include <ivaria/physics.h>

List of all members.

Static Public Member Functions

static csPtr< iMeshFactoryWrapperCreateClothGenMeshFactory (iObjectRegistry *object_reg, const char *factoryName, iSoftBody *cloth)
 Create a genmesh from the given cloth soft body.

Detailed Description

General helper class for CS::Physics::Bullet::iSoftBody.

Definition at line 416 of file physics.h.


Member Function Documentation

static csPtr<iMeshFactoryWrapper> CS::Physics::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).

Warning:
Don't forget to use doubleSided = true in CS::Animation::iSoftBodyAnimationControl::SetSoftBody()

Definition at line 427 of file physics.h.


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

Generated for Crystal Space 2.1 by doxygen 1.6.1