Removed unnecessary switch.
This commit is contained in:
parent
34f0f95bce
commit
19569a0443
1 changed files with 2 additions and 4 deletions
|
@ -25,10 +25,8 @@ Physical::Physical(const PhysicalData& data) :
|
|||
// not moving -> static body
|
||||
// moving -> dynamic body
|
||||
// bullet -> kinematic body
|
||||
bodyDef.type = (data.moving) ?
|
||||
(data.bullet)
|
||||
? b2_dynamicBody
|
||||
: b2_dynamicBody
|
||||
bodyDef.type = (data.moving)
|
||||
? b2_dynamicBody
|
||||
: b2_staticBody;
|
||||
bodyDef.position = vector(data.position);
|
||||
bodyDef.allowSleep = true;
|
||||
|
|
Reference in a new issue