alecthomas / alecthomas/entityx
Passing an entity as a pointer (Question)
- Linguagem predominante
- C++
- Estrelas
- 2.3k
- Forks
- 301
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
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.
Guia de contribuição
Nenhum guia de contribuição indexado para este repositório
Avaliação
Esta issue ainda não foi avaliada.