|
@@ -203,7 +203,7 @@ public:
|
|
_FORCE_INLINE_ bool is_active() const { return active; }
|
|
_FORCE_INLINE_ bool is_active() const { return active; }
|
|
|
|
|
|
_FORCE_INLINE_ void wakeup() {
|
|
_FORCE_INLINE_ void wakeup() {
|
|
- if ((get_space() && active) || mode==Physics2DServer::BODY_MODE_STATIC || mode==Physics2DServer::BODY_MODE_KINEMATIC)
|
|
|
|
|
|
+ if ((!get_space()) || mode==Physics2DServer::BODY_MODE_STATIC || mode==Physics2DServer::BODY_MODE_KINEMATIC)
|
|
return;
|
|
return;
|
|
set_active(true);
|
|
set_active(true);
|
|
}
|
|
}
|