Archive 17/01/2023.

Bug for rigidbody2d

att

void RigidBody2D::ApplyLinearImpulse(const Vector2& impulse, const Vector2& point, bool wake) { if (body_ && impulse != 0) body_->ApplyLinearImpulse(ToB2Vec2(impulse), ToB2Vec2(point), wake); }

should be

void RigidBody2D::ApplyLinearImpulse(const Vector2& impulse, const Vector2& point, bool wake) { if (body_ && impulse != Vector2::ZERO) body_->ApplyLinearImpulse(ToB2Vec2(impulse), ToB2Vec2(point), wake); }

because vector2 not offered int to vector2 construction.

aster2013

thanks,I will fix it.???