6#include <QtQuick3D/QQuick3DGeometry>
7#include <extensions/PxExtensionsAPI.h>
18
19
20
21
22
23
24
25
26
27
28
29
31QPlaneShape::QPlaneShape() =
default;
33QPlaneShape::~QPlaneShape()
35 delete m_planeGeometry;
38physx::PxGeometry *QPlaneShape::getPhysXGeometry()
40 if (!m_planeGeometry) {
41 updatePhysXGeometry();
43 return m_planeGeometry;
46void QPlaneShape::updatePhysXGeometry()
48 delete m_planeGeometry;
50 m_planeGeometry =
new physx::PxPlaneGeometry();