52QQuick3DPhysicsLocationHit::QQuick3DPhysicsLocationHit(
const physx::PxLocationHit &hit,
53 const physx::PxActorShape &actorShape)
54 : QQuick3DPhysicsQueryHit(hit, actorShape), m_distance(hit.distance)
56 if (hit.flags & physx::PxHitFlag::ePOSITION)
57 m_position = QVector3D(hit.position.x, hit.position.y, hit.position.z);
59 if (hit.flags & physx::PxHitFlag::eNORMAL)
60 m_normal = QVector3D(hit.normal.x, hit.normal.y, hit.normal.z);