7 #ifndef NDK_SYSTEMS_PHYSICSSYSTEM2D_HPP 8 #define NDK_SYSTEMS_PHYSICSSYSTEM2D_HPP 10 #include <Nazara/Physics2D/PhysWorld2D.hpp> 11 #include <NDK/EntityList.hpp> 12 #include <NDK/System.hpp> 24 Nz::PhysWorld2D& GetWorld();
25 const Nz::PhysWorld2D& GetWorld()
const;
27 static SystemIndex systemIndex;
30 void CreatePhysWorld()
const;
31 void OnEntityValidation(
Entity* entity,
bool justAdded)
override;
32 void OnUpdate(
float elapsedTime)
override;
36 mutable std::unique_ptr<Nz::PhysWorld2D> m_world;
40 #include <NDK/Systems/PhysicsSystem2D.inl> 42 #endif // NDK_SYSTEMS_PHYSICSSYSTEM2D_HPP TODO: For now is unable to display different color in the history, it needs a RichTextDrawer to do so...
Definition: Algorithm.hpp:12
NDK class that represents an entity in a world.
Definition: Entity.hpp:28
NDK class that represents a two-dimensional physics system.
Definition: PhysicsSystem2D.hpp:17
NDK class that represents a set of entities to help performing batch operations.
Definition: EntityList.hpp:16