OverviewFelgo 2 Support (Qt 5) › How to get the contact point coordinates during onBeginContact

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #8667


    I need to know where a contact occurs – ideally in entity coordinates, though world coordinates could also help.

    (I’m trying to ask “did I hit my head or my feet?”,  and it is tricky because the platform I’m hitting might be sloped)

    I can see that in Box2D this is available via the GetWorldManifold() method of the contact passed into the BeginContact() handler.


    How can I get this info in Felgo?




    I’m bumping this question because it has become quite an issue.

    I’m finding more and more reasons why I need to know where the two entities touched, and haven’t yet been able to see an easy way for me to do the maths/geometry to work it out myself.


    • This reply was modified 4 years, 11 months ago by  GreenAsJade.

    Felgo Team

    Hi Martin,

    unfortunately, the Box2D-QML plugin that we are using does not offer this feature out of the box. We will try to add it to one of our next updates, in the meantime though, I would recommend using additional colliders at the top and bottom of your character to determine the point of collision.




    Hah – good idea – thanks! 🙂


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

RSS feed for this thread

You must be logged in to reply to this topic.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
create apps
create games
cross platform
native performance
3rd party services
game network
level editor
easiest to learn
biggest time saving
best support