NcStudios / NcEngine

NcEngine: 3D game engine written in modern C++ and Vulkan
https://ncstudios.itch.io/
MIT License
36 stars 2 forks source link

Make Joint a Component #637

Open McCallisterRomer opened 1 month ago

McCallisterRomer commented 1 month ago

The interface for Joints is terrible. If we can make it a component, we can get a ton of mileage with little work (ui, serialization, they're auto removed when Entity dies). The issue here is that it relates two objects, so what does that look like? Do both entities get a component? Is one entity the 'owner' and the other is just referenced?