Removed unnecessary switch.

This commit is contained in:
Felix Ableitner 2012-09-11 16:08:38 +02:00
parent 34f0f95bce
commit 19569a0443

View file

@ -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;