ParticleShape3D QML Type

Offers 3D shapes for emitters and affectors. 更多...

import 语句: import QtQuick3D.Particles3D
Since: Qt 6.2

特性

详细描述

The ParticleShape3D element supports shapes like Cube , Sphere and Cylinder for particles needs. For example, emitter can use shape property to emit particles from the shape area.

Shapes don't have position, scale or rotation. Instead, they use parent node for these properties.

特性文档编制

ShapeType : enumeration

Defines the type of the shape.

常量 描述
ParticleShape3D.Cube Cube shape.
ParticleShape3D.Sphere Sphere shape.
ParticleShape3D.Cylinder Cylinder shape.

extents : vector3d

This property defines the extents of the shape.

The default value for each axis is 50 .

fill : bool

This property defines if the shape should be filled or just use the shape outlines.

默认值为 true .

type : ShapeType

This property defines the type of the shape.

默认值为 ParticleShape3D.Cube .