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

Use built-in primitives as CollisionShapes

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • 6.10.0 FF
    • 6.8.0
    • Quick: 3D Physics
    • None
    • All
    • 7cb23c77f (dev)

    Description

      Hello!

      I tried to that:

       

      StaticRigidBody {
            id: aestWall                    
            position: ...
            scale: ...
            Model {
                id: model
                source: "#Cube"
                materials: DefaultMaterial {
                        diffuseColor: "#888800"
                }
            }
            collisionShapes: ConvexMeshShape {
                       source: model.source
            }
              
      }

      I got a lot error messages saying it cannot read the mesh.
      ConvexMeshShape has also geometry property but I don't think it will accept model.geometry as valid value in this context as the documentation says that the geometry property must be empty for built-in primitives to work.

      If there is a way to do it, please improve the documentation to let us know.
      If there is no way to do it, it will be wonderful to add a solution here.

       

      Attachments

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

        Activity

          People

            qt.team.graphics.and.multimedia Qt Graphics Team
            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