CapsuleShape QML Type

錠剤のような形状を定義します。もっと見る...

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

CollisionShape

プロパティ

詳細説明

この型はカプセルの形状を定義する。これは両端に半球を持つ円柱である。原点はカプセルの中心にある。カプセルは、円柱と半球の直径を決定するdiameter と、円柱の高さを決定するheight によって指定されます。

注: この形状でスケーリング変換を使用する場合、x成分は高さのスケーリングに使用され、y成分は直径のスケーリングに使用されます。スケーリング変換が一様でない場合でも、円柱は常に完全な円形になります。

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

プロパティの説明

diameter : real

このプロパティは、カプセルの直径を定義します。

デフォルト値:100


height : real

このプロパティは、カプセルの高さを定義します。

デフォルト値100


© 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.