Sdk/BaseSystem: Fix udpate with max update rate + unit tests

This commit is contained in:
Lynix
2017-09-22 21:01:25 +02:00
parent cc4fdf2476
commit f95fc332f1
8 changed files with 18 additions and 7 deletions

View File

@@ -13,6 +13,8 @@ SCENARIO("VelocitySystem", "[NDK][VELOCITYSYSTEM]")
Ndk::VelocityComponent& velocityComponent = entity->AddComponent<Ndk::VelocityComponent>();
Ndk::NodeComponent& nodeComponent = entity->AddComponent<Ndk::NodeComponent>();
world.GetSystem<Ndk::VelocitySystem>().SetFixedUpdateRate(30.f);
WHEN("We give a speed to our entity")
{
Nz::Vector3f velocity = Nz::Vector3f::Unit() * 2.f;