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

SphereShape QML Type

Defines a spherical collision shape.

This type was introduced in Qt 6.4.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

SphereShape QML Type

  • Import Statement: import QtQuick3D.Physics

  • Since:: Qt 6.4

  • Inherits:: CollisionShape

I. Detailed Description

This type defines a spherical shape. The origin is at the center of the sphere.

When using a scaling transformation with this shape, the x component will be used to scale the diameter of the sphere. The resulting shape will be perfectly round, even if a non-uniform scaling transformation is used.

II. Property Documentation

 

II-1. diameter : float

This property defines the diameter of the sphere

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