7 #ifndef NDK_COMPONENTS_COLLISIONCOMPONENT3D_HPP 8 #define NDK_COMPONENTS_COLLISIONCOMPONENT3D_HPP 10 #include <Nazara/Physics3D/Collider3D.hpp> 11 #include <Nazara/Physics3D/RigidBody3D.hpp> 12 #include <NDK/Component.hpp> 19 friend class PhysicsSystem3D;
33 static ComponentIndex componentIndex;
36 void InitializeStaticBody();
37 Nz::RigidBody3D* GetStaticBody();
39 void OnAttached()
override;
42 void OnDetached()
override;
44 std::unique_ptr<Nz::RigidBody3D> m_staticBody;
50 #include <NDK/Components/CollisionComponent3D.inl> 52 #endif // NDK_COMPONENTS_COLLISIONCOMPONENT3D_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 the component for collision (meant for static objects)
Definition: CollisionComponent3D.hpp:17
NDK class that represents the common base of all components.
Definition: BaseComponent.hpp:17