Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qquick3dparticleemitter.cpp File Reference

(c4beeea9b72574e8a6e3781731ddf6080df5849f)

Include dependency graph for qquick3dparticleemitter.cpp:

Go to the source code of this file.

Functions

template<typename T, typename std::enable_if_t< std::is_signed_v< T >, bool > = true, typename std::enable_if_t< std::is_arithmetic_v< T >, bool > = true>
static QT_BEGIN_NAMESPACE constexpr T qSign (T val)
 \qmltype ParticleEmitter3D \inherits Node \inqmlmodule QtQuick3D.Particles3D
static QMatrix4x4 rotationFromNormal (const QVector3D &n)
static QVector3D reflect (const QVector3D &I, QVector3D &N)

Function Documentation

◆ qSign()

template<typename T, typename std::enable_if_t< std::is_signed_v< T >, bool > = true, typename std::enable_if_t< std::is_arithmetic_v< T >, bool > = true>
QT_BEGIN_NAMESPACE constexpr T qSign ( T val)
staticconstexpr

\qmltype ParticleEmitter3D \inherits Node \inqmlmodule QtQuick3D.Particles3D

Emitter for logical particles.

Since
6.2

This element emits logical particles into the \l ParticleSystem3D, with the given starting attributes.

At least one emitter is required to have particles in the \l ParticleSystem3D. There are a few different ways to control the emitting amount: \list

  • Set the \l emitRate which controls how many particles per second get emitted continuously.
  • Add \l EmitBurst3D elements into emitBursts property to emit bursts declaratively.
  • Call any of the \l burst() methods to emit bursts immediately. \endlist

Definition at line 36 of file qquick3dparticleemitter.cpp.

◆ reflect()

QVector3D reflect ( const QVector3D & I,
QVector3D & N )
static

Definition at line 749 of file qquick3dparticleemitter.cpp.

◆ rotationFromNormal()

QMatrix4x4 rotationFromNormal ( const QVector3D & n)
static

Definition at line 710 of file qquick3dparticleemitter.cpp.