I would like to implement something similar discussed in Efficient communication between entities using ECS via entt
There are two entities Ship, Engine. Ship has the components AppliedForces, Mass and Velocity. Engine has the components Parent and Thrust and Parent is a component containing an id of the engine. The parent component is used as follows:
auto view = entities.view<Thrust, Parent>(); auto& applied_forces = entities.get<AppliedForces>(parent.id); How do I get the the id of an Entity (Engine in this context) in EnTT in order to retrieve components of an entity itself using the id?