alecthomas / alecthomas/entityx
Passing an entity as a pointer (Question)
- Lenguaje dominante
- C++
- Estrellas
- 2.3k
- Forks
- 301
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
Hi @alecthomas , great library!
I have a scenario in one of my projects, where I need to pass an entity or a component to the physics engine (bullet) as a pointer (void*).
When I am trying to receive the pointer back, if I cast it to an entity for example, I can't access any of the components because It gives me some error like the id is invalid or if I am trying to use the id it tells me that the index is smaller than the component mask (or something close to this).
Is there any other way to pass an entity as a pointer and access it in some other part of the code without being invalid?
Thanks.
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Evaluación
Este issue todavía no se ha evaluado.