Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business


OverviewFelgo 3 Support (Qt 5) › CircleCollider's bouding box didn't wrap the entity.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #13674


    I’m following the tutorial FlappyBird. When creating the Player.qml:

    import Felgo 3.0
    import QtQuick 2.0
    EntityBase {
        id: player
        entityType: "player"
        SpriteSequenceVPlay {
            id: bird
            anchors.centerIn: parent
            SpriteVPlay {
                frameCount: 3
                frameRate: 10
                frameWidth: 34
                frameHeight: 24
                source: "../assets/bird.png"
        CircleCollider {
            id: collider
            radius: 13

    I tried to run the game. But the bounding box result was not same as the tutorial: Tutorial_Image vs My result

    The bounding box didn’t wrap up the image. What is my wrong? Thank you very much!



    Felgo Team

    Hi Vi,

    please add the following code to the CircleCollider:

    x: -radius
    y: -radius

    There have been minor changes to the physics engine. The point of origin of the CircleCollider is now the upper left corner and not the center, thus we have to move it a little to position it in the center in this case.

    We will update the tutorial accordingly, thank you very much for noticing this issue!




    Correct! Thank you so much Alex!

Viewing 3 posts - 1 through 3 (of 3 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded