Skip to content

from variant to component-type variant? #865

Answered by skypjack
Sephirothbahamut asked this question in Q&A
Discussion options

You must be logged in to vote

Before answering, let me ask you a question: are the colliders derived from a base class? You could enable pointer stability for the shape types in this case, put a pointer to the base class on the aabb component or any other known component, then rely on the double dispatching to resolve the call. That or any variation of the problem too. For example, an erased function and a void* to the shape component.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Sephirothbahamut
Comment options

Answer selected by Sephirothbahamut
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
discussion it sounds interesting, let's discuss it
2 participants