remove function
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
@ -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:
|
||||
|
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user