Tour Preview

Find the Best Demos and Examples

Check out this quick tour to find the best demos and examples for you, and to see how the Felgo SDK can help you to develop your next app or game!


OverviewFelgo 2 Support (Qt 5) › Determine which colliding entity?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #15715



    How do you determine what an entity has collided with? I tried to use an if statement inside fixture.onBeginContact but it didnt allow that? I have the following:

    CircleCollider {
            id: ufoCollider
            radius: ufoSprite.width/2
            anchors.fill: ufoSprite
            collisionTestingOnlyMode: true
            categories: Circle.Category2
            collidesWith: Circle.Category1 || Box.Category1
            fixture.onBeginContact: {
                    console.log("KollisionUfo" + Math.random())

    And i want to determine when this ufo collide with my ship.





    Felgo Team
Viewing 2 posts - 1 through 2 (of 2 total)

RSS feed for this thread

You must be logged in to reply to this topic.