also add separate flag for rotation and separate flags for linear vs angular velocity and some combined flag masks for convenience
Showing the changes to libraries/physics/src/ObjectMotionState.cpp (1 of 3 files). Show all
Unified · Split
| @@ -146,7 +146,7 @@ void ObjectMotionState::handleEasyChanges(uint32_t flags) { · 145 unmodified lines | |||
| 146 | _body->updateInertiaTensor(); | 146 | _body->updateInertiaTensor(); |
| 147 | } | 147 | } |
| 148 | 148 | ||
| 149 | if (flags & EntityItem::DIRTY_ACTIVATION) { | 149 | if (flags & EntityItem::DIRTY_PHYSICS_ACTIVATION) { |
| 150 | _body->activate(); | 150 | _body->activate(); |
| 151 | } | 151 | } |
| 152 | } | 152 | } |