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

Clarify contact callback handling

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Fixed
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Sprint:
      2022 Qt Quick 3D: Week 19-20, 2022 Qt Quick 3D: Week 21-22, 2022 Qt Quick 3D: Week 31-32

      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

            Assignee:
            jokarlss Jonas Karlsson
            Reporter:
            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