Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

beginContact triggered before entity is created #13

Open
Klemms opened this issue May 16, 2022 · 1 comment
Open

beginContact triggered before entity is created #13

Klemms opened this issue May 16, 2022 · 1 comment

Comments

@Klemms
Copy link

Klemms commented May 16, 2022

In case an entity with a PhysicsBody is created inside another entity with PhysicsBody, the beginContact callback from PhysicsContact is triggered before the entity has been initialized (init has not been called in the script) and the entity has no entityId.

Expected behaviour :
beginContact call is deferred until the script attached to the entity has been initialized and the entityId has been assigned.

Situation where I encountered this issue :
When two entities are really close and one fires a projectile at the other, the projectile entity is created inside the other one.

@fgnm
Copy link
Member

fgnm commented May 18, 2022

I think it's fixed now, let me know

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants