Examples/PhysicsPlayground: Reduce ship count
This commit is contained in:
parent
f952c64642
commit
44c42a85c2
|
|
@ -294,7 +294,7 @@ int main()
|
||||||
colliderModel->SetMaterial(i, colliderMat);
|
colliderModel->SetMaterial(i, colliderMat);
|
||||||
}
|
}
|
||||||
|
|
||||||
constexpr std::size_t ShipCount = 1000;
|
constexpr std::size_t ShipCount = 20;
|
||||||
for (std::size_t i = 0; i < ShipCount; ++i)
|
for (std::size_t i = 0; i < ShipCount; ++i)
|
||||||
{
|
{
|
||||||
entt::handle shipEntity = world.CreateEntity();
|
entt::handle shipEntity = world.CreateEntity();
|
||||||
|
|
@ -314,7 +314,7 @@ int main()
|
||||||
shipEntity.emplace<Nz::BulletRigidBody3DComponent>(physSystem.CreateRigidBody(shipCollider));
|
shipEntity.emplace<Nz::BulletRigidBody3DComponent>(physSystem.CreateRigidBody(shipCollider));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
shipEntity.get<Nz::GraphicsComponent>().AttachRenderable(colliderModel);
|
//shipEntity.get<Nz::GraphicsComponent>().AttachRenderable(colliderModel);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue