Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-102260 Physics: API review
  3. QTBUG-102272

Clarify contact callback handling

    XMLWordPrintable

Details

    • Sub-task
    • Resolution: Fixed
    • Not Evaluated
    • None
    • None
    • None
    • 2022 Qt Quick 3D: Week 19-20, 2022 Qt Quick 3D: Week 21-22

    Description

      There are currently two types of contact reporting, onBodyContact between rigid bodies and onBodyEntered/onBodyExited for trigger bodies.

      The onBodyContact callback gets triggered when bodies collide and both bodies have reportContacts set. Instead we should have two properties; sendContactReports and receiveContactReports so an object will send contact reports to other bodies and/or receive contacts from other bodies.

      The trigger body is a bit different since it does not collide and thus have no contact data. Here a rigid body just needs a flag for enabling/disabling the onBodyEntered/onBodyExited callback like enableTriggerReports or something.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            jokarlss Jonas Karlsson
            jokarlss Jonas Karlsson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes