16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-19 13:29:18 +02:00
This commit is contained in:
2026-05-24 21:48:05 +02:00
parent 5b51188dfe
commit 2c599cb419
46 changed files with 2034 additions and 85 deletions

View File

@@ -8,10 +8,12 @@
#include "glm/vec3.hpp"
#include "glm/gtc/quaternion.hpp"
#include "registry/FName.h"
#include "utils/uuid.hpp"
#include "utilities/uuid.hpp"
#include <cstdint>
#include <string>
class TDynamicObject;
namespace ECSComponent
{
///< summary>
@@ -45,6 +47,15 @@ struct Identification
struct Parent
{
entt::entity value{entt::null};
glm::dvec3 localOffset{0.0}; // position offset relative to parent
glm::quat localRotation{1.f, 0.f, 0.f, 0.f}; // rotation relative to parent
};
// Links an ECS entity to its corresponding simulation vehicle.
// VehicleSyncSystem reads this to keep Transform in sync with vehicle world position.
struct VehicleRef
{
TDynamicObject* vehicle = nullptr;
};
struct SoundComponent