using hasComponentType seems to always return null, i'm not really sure how to filter through my array of entities which have a specific component.
entity.getComponentType(Collision)
also the gets underlined by my ide so not really sure if that is also the issue.
After playing around i found out that if i use the same call within the Player assemblages file the code returns the component however when using this code within the PlayerSystem file i get a return of null.
using hasComponentType seems to always return null, i'm not really sure how to filter through my array of entities which have a specific component.
also the gets underlined by my ide so not really sure if that is also the issue.
After playing around i found out that if i use the same call within the Player assemblages file the code returns the component however when using this code within the PlayerSystem file i get a return of null.