Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-131964

Clarify how scale is applied on RigidBody's geometry and collision shape.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P3: Somewhat important
    • None
    • 6.8.0
    • Quick: 3D Physics
    • None
    • All

    Description

      Hello!

      I tried to that:

      StaticRigidBody {// could also be a dynamic one
            id: aestWall                    
            position: ...
            scale: scaleA
            Model {
                id: model
                source: "qrc:/my/mesh.mesh"
                scale: scaleB
                 materials: DefaultMaterial {
                        diffuseColor: "#888800"
                }
            }
            collisionShapes: ConvexMeshShape {
                source: model.source
            }
              
      }

      There is no indication or recommendation In the documentation on how scale is managed in this case.

      At first, I thought CollisionShapes herits its scale from the StaticRigidBody, but I believe it is completely independent. It may be useful to indicate that in https://doc.qt.io/qt-6/qtquick3dphysics-shapes-bodies.html

      Is there any better choice in term of performance, here ?

      Attachments

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

        Activity

          People

            jokarlss Jonas Karlsson
            obiwankennedy renaud.guezennec
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes