7 #ifndef NDK_COMPONENTS_COLLISIONCOMPONENT2D_HPP 8 #define NDK_COMPONENTS_COLLISIONCOMPONENT2D_HPP 10 #include <Nazara/Physics2D/Collider2D.hpp> 11 #include <Nazara/Physics2D/RigidBody2D.hpp> 12 #include <NDK/Component.hpp> 34 static ComponentIndex componentIndex;
37 void InitializeStaticBody();
38 Nz::RigidBody2D* GetStaticBody();
40 void OnAttached()
override;
43 void OnDetached()
override;
45 std::unique_ptr<Nz::RigidBody2D> m_staticBody;
51 #include <NDK/Components/CollisionComponent2D.inl> 53 #endif // NDK_COMPONENTS_COLLISIONCOMPONENT2D_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 a two-dimensional collision geometry.
Definition: CollisionComponent2D.hpp:17
NDK class that represents a two-dimensional physics system.
Definition: PhysicsSystem2D.hpp:17
NDK class that represents the common base of all components.
Definition: BaseComponent.hpp:17