|
Engine²
Open-source game engine written in C++.
|
#include "Physics.pch.hpp"#include "system/VehicleSystem.hpp"#include "Logger.hpp"#include "Object.hpp"#include "component/RigidBody.hpp"#include "component/RigidBodyInternal.hpp"#include "component/Vehicle.hpp"#include "component/VehicleInternal.hpp"#include "resource/PhysicsManager.hpp"#include "utils/JoltConversions.hpp"#include <Jolt/Physics/Body/BodyCreationSettings.h>#include <Jolt/Physics/Collision/Shape/CylinderShape.h>#include <Jolt/Physics/Vehicle/WheeledVehicleController.h>#include <array>#include <fmt/format.h>#include <glm/glm.hpp>Namespaces | |
| namespace | Physics |
| namespace | Physics::System |
Functions | |
| static void | Physics::System::CreateJoltWheelSettings (JPH::WheelSettingsWV &joltWheel, const Component::WheelSettings &wheelSettings, const glm::vec3 &position, bool isRear) |
| Create Jolt wheel settings from Physics wheel configuration. | |
| static void | Physics::System::OnVehicleConstruct (Engine::Core::Registry ®istry, Engine::EntityId entityId) |
| Called when Vehicle component is added to an entity. | |
| static void | Physics::System::OnVehicleDestroy (Engine::Core::Registry ®istry, Engine::EntityId entityId) |
| Called when Vehicle component is removed from an entity. | |
| void | Physics::System::InitVehicleSystem (Engine::Core &core) |
| Initialize the vehicle system with entt lifecycle hooks. | |