Better API naming. Enable self-collision by default.
This commit is contained in:
@ -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;
|
||||
|
@ -67,6 +67,9 @@ private:
|
||||
|
||||
// AABB Proxy
|
||||
b3ClothAABBProxy m_aabbProxy;
|
||||
|
||||
// Broadphase ID
|
||||
u32 m_broadPhaseId;
|
||||
};
|
||||
|
||||
inline u32 b3ClothTriangle::GetTriangle() const
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user