TriangleMeshShape QML Type

3Dメッシュに基づく衝突形状。詳細...

Import Statement: import QtQuick3D.Physics
Since: Qt 6.4
Inherits:

CollisionShape

プロパティ

詳細説明

この型は、QtQuick3D.Model で使用されるのと同じ 3D メッシュファイル形式に基づいて形状を定義します。

物理シミュレーションによって制御されるオブジェクトは TriangleMeshShape を使用できません:これはStaticRigidBodykinematic bodies でのみ使用できます。非キネマティックダイナミックボディにはConvexMeshShape を使用してください。

Shapes and Bodies overview documentationも参照してください

プロパティのドキュメント

geometry : Geometry [since 6.7]

このプロパティは、形状を定義するために使用されるメッシュのジオメトリを定義します。

注: geometry とsource プロパティの両方が設定されている場合は、geometry のみが使用されます。

このプロパティは Qt 6.7 で導入されました。

TriangleMeshShape::sourceも参照してください


source : url

このプロパティは、シェイプの定義に使用されるメッシュファイルの場所を定義します。

内部的に、TriangleMeshShape はメッシュを最適化されたデータ構造に変換します。この変換は事前に行うことができます。詳細については、料理の概要ドキュメントを参照してください。

注意: geometry と source プロパティの両方が設定されている場合、geometry のみが使用されます。

TriangleMeshShape::geometryも参照して ください。


© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.