diff --git a/include/bounce/softbody/softbody.h b/include/bounce/softbody/softbody.h index 9ea65e9..e837ed9 100644 --- a/include/bounce/softbody/softbody.h +++ b/include/bounce/softbody/softbody.h @@ -81,7 +81,7 @@ struct b3SoftBodyDef float32 nu; }; -// A soft body represents a deformable volume as a collection of nodes. +// A soft body represents a deformable volume as a collection of nodes and elements. class b3SoftBody { public: @@ -97,11 +97,11 @@ public: // Get the acceleration of gravity. b3Vec3 GetGravity() const; - // Attach a world to this cloth. - // The cloth will be able to respond to collisions with the bodies in the attached world. + // Attach a world to this soft body. + // The soft body will be able to respond to collisions with the bodies in the attached world. void SetWorld(b3World* world); - // Get the world attached to this cloth. + // Get the world attached to this soft body. const b3World* GetWorld() const; b3World* GetWorld(); diff --git a/src/bounce/softbody/softbody.cpp b/src/bounce/softbody/softbody.cpp index 17b02d2..e98bff7 100644 --- a/src/bounce/softbody/softbody.cpp +++ b/src/bounce/softbody/softbody.cpp @@ -802,7 +802,7 @@ void b3SoftBody::UpdateContacts() { B3_PROFILE("Soft Body Update Contacts"); - // Is there a world attached to this cloth? + // Is there a world attached to this soft body? if (m_world == nullptr) { return;