Physics2D: Handle kinematic objects properly
This commit is contained in:
@@ -128,7 +128,7 @@ SCENARIO("RigidBody2D", "[PHYSICS2D][RIGIDBODY2D]")
|
||||
CHECK(body.GetUserdata() == &userData);
|
||||
CHECK(body.GetVelocity() == Nz::Vector2f::Zero());
|
||||
|
||||
CHECK(body.IsMoveable() == true);
|
||||
CHECK(body.IsKinematic() == false);
|
||||
CHECK(body.IsSleeping() == false);
|
||||
}
|
||||
}
|
||||
@@ -315,4 +315,4 @@ void EQUALITY(const Nz::RigidBody2D& left, const Nz::RigidBody2D& right)
|
||||
CHECK(left.GetRotation() == right.GetRotation());
|
||||
CHECK(left.GetUserdata() == right.GetUserdata());
|
||||
CHECK(left.GetVelocity() == right.GetVelocity());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user