Better API naming. Enable self-collision by default.

This commit is contained in:
Irlan
2019-06-18 21:00:03 -03:00
parent 170793896d
commit 9765e72ab9
9 changed files with 85 additions and 79 deletions

View File

@ -133,8 +133,8 @@ public:
// Return the cloth mesh proxy.
const b3ClothMesh* GetMesh() const;
// Return the particle associated with the given vertex.
b3Particle* GetVertexParticle(u32 i);
// Return the cloth particle given vertex index.
b3Particle* GetParticle(u32 i);
// Return the cloth triangle given the triangle index.
b3ClothTriangle* GetTriangle(u32 i);
@ -179,8 +179,8 @@ private:
// Proxy mesh
const b3ClothMesh* m_mesh;
// Vertex particles
b3Particle** m_vertexParticles;
// Particles
b3Particle** m_particles;
// Triangles
b3ClothTriangle* m_triangles;

View File

@ -67,6 +67,9 @@ private:
// AABB Proxy
b3ClothAABBProxy m_aabbProxy;
// Broadphase ID
u32 m_broadPhaseId;
};
inline u32 b3ClothTriangle::GetTriangle() const

View File

@ -102,8 +102,7 @@ enum b3ClothAABBProxyType
struct b3ClothAABBProxy
{
b3ClothAABBProxyType type;
void* data;
u32 broadPhaseId;
void* owner;
};
// A cloth particle.
@ -229,6 +228,9 @@ private:
// AABB Proxy
b3ClothAABBProxy m_aabbProxy;
// Broadphase ID
u32 m_broadPhaseId;
// Links to the cloth particle list.
b3Particle* m_prev;
b3Particle* m_next;