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
|
// not moving -> static body
|
||||||
// moving -> dynamic body
|
// moving -> dynamic body
|
||||||
// bullet -> kinematic body
|
// bullet -> kinematic body
|
||||||
bodyDef.type = (data.moving) ?
|
bodyDef.type = (data.moving)
|
||||||
(data.bullet)
|
|
||||||
? b2_dynamicBody
|
? b2_dynamicBody
|
||||||
: b2_dynamicBody
|
|
||||||
: b2_staticBody;
|
: b2_staticBody;
|
||||||
bodyDef.position = vector(data.position);
|
bodyDef.position = vector(data.position);
|
||||||
bodyDef.allowSleep = true;
|
bodyDef.allowSleep = true;
|
||||||
|
|
Reference in a new issue