Rename Softbody to Beam

This commit is contained in:
Irlan 2019-05-28 14:10:45 -03:00
parent 0e5262629d
commit a97e5c07cc
2 changed files with 8 additions and 8 deletions

View File

@ -66,7 +66,7 @@
#include <testbed/tests/tension_mapping.h>
#include <testbed/tests/self_collision.h>
#include <testbed/tests/rope_test.h>
#include <testbed/tests/softbody.h>
#include <testbed/tests/beam.h>
#include <testbed/tests/pinned_softbody.h>
#include <testbed/tests/smash_softbody.h>
@ -119,7 +119,7 @@ TestEntry g_tests[] =
{ "Particle Types", &ParticleTypes::Create },
{ "Tension Mapping", &TensionMapping::Create },
{ "Self-Collision", &SelfCollision::Create },
{ "Soft Body", &SoftBody::Create },
{ "Beam", &Beam::Create },
{ "Pinned Soft Body", &PinnedSoftBody::Create },
{ "Smash Soft Body", &SmashSoftBody::Create },
{ "Rope", &Rope::Create },

View File

@ -16,15 +16,15 @@
* 3. This notice may not be removed or altered from any source distribution.
*/
#ifndef SOFTBODY_H
#define SOFTBODY_H
#ifndef BEAM_H
#define BEAM_H
#include <testbed/framework/softbody_dragger.h>
class SoftBody : public Test
class Beam : public Test
{
public:
SoftBody()
Beam()
{
// Create soft body
b3SoftBodyDef def;
@ -83,7 +83,7 @@ public:
m_bodyDragger = new b3SoftBodyDragger(&m_ray, m_body);
}
~SoftBody()
~Beam()
{
delete m_bodyDragger;
delete m_body;
@ -148,7 +148,7 @@ public:
static Test* Create()
{
return new SoftBody();
return new Beam();
}
b3BlockSoftBodyMesh<5, 2, 2> m_mesh;