Update comments

This commit is contained in:
Irlan 2019-05-14 09:37:17 -03:00
parent 33a661cb32
commit 4980e3c7f0
2 changed files with 5 additions and 5 deletions

View File

@ -81,7 +81,7 @@ struct b3SoftBodyDef
float32 nu; 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 class b3SoftBody
{ {
public: public:
@ -97,11 +97,11 @@ public:
// Get the acceleration of gravity. // Get the acceleration of gravity.
b3Vec3 GetGravity() const; b3Vec3 GetGravity() const;
// Attach a world to this cloth. // Attach a world to this soft body.
// The cloth will be able to respond to collisions with the bodies in the attached world. // The soft body will be able to respond to collisions with the bodies in the attached world.
void SetWorld(b3World* world); void SetWorld(b3World* world);
// Get the world attached to this cloth. // Get the world attached to this soft body.
const b3World* GetWorld() const; const b3World* GetWorld() const;
b3World* GetWorld(); b3World* GetWorld();

View File

@ -802,7 +802,7 @@ void b3SoftBody::UpdateContacts()
{ {
B3_PROFILE("Soft Body Update Contacts"); 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) if (m_world == nullptr)
{ {
return; return;