This commit is contained in:
Irlan
2018-04-02 13:06:32 -03:00
parent 40093fcf2f
commit c1a5d1b93f
6 changed files with 32 additions and 30 deletions

View File

@ -98,7 +98,7 @@ struct b3Spring
// Static masses have zero mass and velocity, and therefore they can't move.
// Dynamic masses have non-zero mass and can move due to internal and external forces.
enum b3MassType
enum class b3MassType : u32
{
e_staticMass,
e_dynamicMass
@ -247,7 +247,7 @@ inline void b3SpringCloth::SetType(u32 i, b3MassType type)
m_f[i].SetZero();
if (type == e_staticMass)
if (type == b3MassType::e_staticMass)
{
m_v[i].SetZero();
m_y[i].SetZero();
@ -272,7 +272,7 @@ inline void b3SpringCloth::ApplyForce(u32 i, const b3Vec3& force)
{
B3_ASSERT(i < m_massCount);
if (m_types[i] != e_dynamicMass)
if (m_types[i] != b3MassType::e_dynamicMass)
{
return;
}

View File

@ -31,7 +31,7 @@ struct b3SparseMat33;
struct b3MassContact;
struct b3Spring;
enum b3MassType;
enum class b3MassType : u32;
struct b3SpringSolverDef
{