I analyzed tutorials related with cloth:
..\Advanced\2 - Animation, Physics, Rendering\Physics\14 - Cloth.cpp
..\Advanced\4 - Demos, Game Basics\Game Basics\21 - Physical Clothing.cpp
I created cloth mesh in Model Editor, step by step:
1. Loaded mesh
2. Chose Mesh->Cloth->Edit
3. All vertex are white
4. Chose Mesh->Cloth->Toggle All Vertexes
5. Selected vertexes which should be connect with character
6. Save mesh
7. Chose Mesh->Cloth->Export MeshPart to ClothMesh
And when I loaded mesh once again to Model Editor, all vertexes were white - not connected with character.
When I tried to load my created ClothMesh in tutorial
..\Advanced\4 - Demos, Game Basics\Game Basics\21 - Physical Clothing.cpp
cloth was't created. In function
Code:
void Player::create(Game::ObjParams &obj)
condition
Code:
if(C VecB4 * vtx_matrix=cloth_mesh->mesh().vtx.matrix())
return always false...
Anyone know what I did wrong?