Skip to content

beginContact triggered before entity is created #13

@Klemms

Description

@Klemms

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions