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

TriggerBody QML Type

Base type for a trigger body.

This type was introduced in Qt 6.4.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

TriggerBody QML Type

  • Import Statement: import QtQuick3DPhysics

  • Since: Qt 6.4

  • Inherits: CollisionNode

Detailed Description

This is the base type for a trigger body. A trigger body is a body that does not interact physically but is used to detect when objects intersect.

Property Documentation

 

collisionCount : int

This property returns the number of bodies currently colliding with the trigger body.

Signal Documentation

 

bodyEntered(CollisionNode *body)

This signal is emitted when the trigger body is penetrated by the specified body.

The corresponding handler is onBodyEntered.

bodyExited(CollisionNode *body)

This signal is emitted when the trigger body is no longer penetrated by the specified body.

The corresponding handler is onBodyExited.

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