![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qquick3dphysicslocationhit_p.h>
Public Member Functions | |
| QQuick3DPhysicsLocationHit () | |
| \qmlvaluetype locationHit \inqmlmodule QtQuick3D.Physics | |
| QQuick3DPhysicsLocationHit (const physx::PxLocationHit &hit, const physx::PxActorShape &actorShape) | |
| Q_REVISION (6, 13) QVector3D position() const | |
| Q_REVISION (6, 13) QVector3D normal() const | |
| Q_REVISION (6, 13) float distance() const | |
| Public Member Functions inherited from QQuick3DPhysicsQueryHit | |
| QQuick3DPhysicsQueryHit () | |
| \qmlvaluetype queryHit \inqmlmodule QtQuick3D.Physics | |
| QQuick3DPhysicsQueryHit (const physx::PxQueryHit &hit, const physx::PxActorShape &actorShape) | |
| Q_REVISION (6, 13) QAbstractPhysicsNode *body() const | |
| Q_REVISION (6, 13) QAbstractCollisionShape *shape() const | |
Properties | |
| QVector3D | position |
| QVector3D | normal |
| float | distance |
| Properties inherited from QQuick3DPhysicsQueryHit | |
| QAbstractPhysicsNode * | body |
| QAbstractCollisionShape * | shape |
Definition at line 27 of file qquick3dphysicslocationhit_p.h.
|
default |
\qmlvaluetype locationHit \inqmlmodule QtQuick3D.Physics
Holds positional and normal information for a physics query hit.
locationHit extends \l queryHit to provide detailed spatial data about an intersection, such as the exact hit point, surface normal, and distance.
This object is usually returned as a result of raycast or sweep queries in the physics scene.
\qmlproperty vector3d locationHit::position \readonly
This property holds the world position of the intersection point.
\qmlproperty vector3d locationHit::normal \readonly
This property holds the surface normal vector at the point of impact in world coordinates.
\qmlproperty real locationHit::distance \readonly
This property holds the distance from the query ray/sweep origin to the intersection point.
|
explicit |
Definition at line 52 of file qquick3dphysicslocationhit.cpp.
| QQuick3DPhysicsLocationHit::Q_REVISION | ( | 6 | , |
| 13 | ) const |
| QQuick3DPhysicsLocationHit::Q_REVISION | ( | 6 | , |
| 13 | ) const |
| QQuick3DPhysicsLocationHit::Q_REVISION | ( | 6 | , |
| 13 | ) const |
|
read |
Definition at line 35 of file qquick3dphysicslocationhit_p.h.
|
read |
Definition at line 34 of file qquick3dphysicslocationhit_p.h.
|
read |
Definition at line 33 of file qquick3dphysicslocationhit_p.h.