IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

TriangleMeshShape QML Type

A collision shape based on a 3D mesh.

This type was introduced in Qt 6.4.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

TriangleMeshShape QML Type

  • Import Statement: import QtQuick3D.Physics

  • Since: Qt 6.4

  • Inherits: CollisionShape

Detailed Description

This type defines a shape based on the same 3D mesh file format used by QtQuick3D.Model.

Objects that are controlled by the physics simulation cannot use TriangleMeshShape: It can only be used with StaticRigidBody and kinematic bodies. Use ConvexMeshShape for non-kinematic dynamic bodies.

See Also

Property Documentation

 

[since 6.7] geometry : Geometry

This property defines the geometry of a mesh used to define the shape.

If both the geometry and source properties are set then only geometry will be used.

This property was introduced in Qt 6.7.

See Also

source : url

This property defines the location of the mesh file used to define the shape.

Internally, TriangleMeshShape converts the mesh to an optimized data structure. This conversion can be done in advance. See the cooking overview documentation for details.

If both the geometry and source properties are set then only geometry will be used.

See Also

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+