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

CapsuleShape QML Type

Defines a pill-like shape.

This type was introduced in Qt 6.4.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

CapsuleShape QML Type

  • Import Statement: import QtQuick3D.Physics

  • Since: Qt 6.4

  • Inherits: CollisionShape

Detailed Description

This type defines a capsule shape. This is a cylinder with a hemisphere at each end. The origin is at the center of the capsule. The capsule is specified by diameter, which determines the diameter of the cylinder and the hemispheres; and height, which determines the height of the cylinder.

When using scaling transformations with this shape, the x component will be used to scale the height and the y component will be used to scale the diameter. The cylinder will always be perfectly circular even if the scaling transformation is non-uniform.

See Also

Property Documentation

 

diameter : float

This property defines the diameter of the capsule

height : float

This property defines the height of the capsule

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