remove function

This commit is contained in:
Irlan
2018-07-18 16:58:21 -03:00
parent eb8a7eefe8
commit 7a1d50465c
8 changed files with 25 additions and 45 deletions

View File

@ -192,9 +192,9 @@ public:
{
B3_ASSERT(IsDragging() == true);
b3Vec3 A = m_mesh->vertices[m_triangle->v1];
b3Vec3 B = m_mesh->vertices[m_triangle->v2];
b3Vec3 C = m_mesh->vertices[m_triangle->v3];
b3Vec3 A = m_mesh->particles[m_triangle->v1]->GetPosition();
b3Vec3 B = m_mesh->particles[m_triangle->v2]->GetPosition();
b3Vec3 C = m_mesh->particles[m_triangle->v3]->GetPosition();
return m_u * A + m_v * B + (1.0f - m_u - m_v) * C;
}

View File

@ -123,9 +123,6 @@ public:
// Get the next cloth in the world cloth list.
b3Cloth* GetNext();
// Set the positions of the mesh vertices to the positions of their associated particles.
void Apply() const;
// Debug draw the cloth using the associated cloth mesh.
void Draw() const;
private:

View File

@ -160,6 +160,9 @@ private:
// Applied external force
b3Vec3 m_force;
// Applied external translation
b3Vec3 m_translation;
// Mass
float32 m_mass;
@ -175,9 +178,6 @@ private:
// Cloth mesh vertex index.
u32 m_vertex;
// Applied external translation
b3Vec3 m_translation;
// Contact
b3BodyContact m_contact;