Engine²
Open-source game engine written in C++.
Loading...
Searching...
No Matches
RigidBodySystem.hpp
Go to the documentation of this file.
1/**************************************************************************
2 * EngineSquared v0.1.1
3 *
4 * EngineSquared is a software package, part of the Engine² organization.
5 *
6 * This file is part of the EngineSquared project that is under MIT License.
7 * Copyright © 2025-present by @EngineSquared, All rights reserved.
8 *
9 * EngineSquared is a free software: you can redistribute it and/or modify
10 * it under the terms of the MIT License. See the project's LICENSE file for
11 * the full license text and details.
12 *
13 * @file RigidBodySystem.hpp
14 * @brief System to manage RigidBody lifecycle with entt hooks
15 *
16 * This system registers entt hooks (on_construct, on_destroy) to automatically
17 * create/destroy Jolt physics bodies when RigidBody components are added/removed.
18 *
19 * @author @EngineSquared
20 * @version 0.1.1
21 * @date 2025-10-29
22 **************************************************************************/
23
24#pragma once
25
26#include "core/Core.hpp"
27
28namespace Physics::System {
29
40void InitRigidBodySystem(Engine::Core &core);
41
50void ShutdownRigidBodySystem(Engine::Core &core);
51
52} // namespace Physics::System
Definition CharacterControllerSystem.cpp:15
void ShutdownRigidBodySystem(Engine::Core &core)
Shutdown RigidBody system and unregister entt hooks.
Definition RigidBodySystem.cpp:422
void InitRigidBodySystem(Engine::Core &core)
Initialize RigidBody system and register entt hooks.
Definition RigidBodySystem.cpp:410