PhysicsImpl mPhysicsImpl;
Actor mPhysicsRoot;
- cpBody* mMouseBody;
- cpBody* mPickedBody;
- int mPickedSavedState;
- cpConstraint* mPickedConstraint;
+ cpBody* mMouseBody{nullptr};
+ cpBody* mPickedBody{nullptr};
+ cpConstraint* mPickedConstraint{nullptr};
+ int mPickedSavedState = -1; /// 0 : Active, 1 : Sleeping
bool mCtrlDown{false};
bool mAltDown{false};
bool mPhysicsIntegrateState{true};
bool mPhysicsDebugState{true};
- cpSpace* mSpace;
+ cpSpace* mSpace{nullptr};
cpShape* mLeftBound{nullptr};
cpShape* mRightBound{nullptr};
cpShape* mTopBound{nullptr};
Dali::Actor mPhysicsRoot;
Dali::Vector2 mWorldOffset;
- FrameCallback* mFrameCallback;
+ FrameCallback* mFrameCallback{nullptr};
};
#endif // DALI_PHYSICS_DEMO_PHYSICS_IMPL_H