6#include <QtQuick3D/QQuick3DGeometry>
7#include <extensions/PxExtensionsAPI.h>
35 delete m_physXGeometry;
46 updatePhysXGeometry();
48 return m_physXGeometry;
57 updatePhysXGeometry();
63void QBoxShape::updatePhysXGeometry()
65 delete m_physXGeometry;
67 m_physXGeometry =
new physx::PxBoxGeometry(half.
x(), half.
y(), half.
z());
void needsRebuild(QObject *)
QBoxShape()
\qmltype BoxShape \inherits CollisionShape \inqmlmodule QtQuick3D.Physics
void extentsChanged(QVector3D extents)
physx::PxGeometry * getPhysXGeometry() override
void setExtents(QVector3D extents)
The QVector3D class represents a vector or vertex in 3D space.
constexpr float y() const noexcept
Returns the y coordinate of this point.
constexpr float x() const noexcept
Returns the x coordinate of this point.
constexpr float z() const noexcept
Returns the z coordinate of this point.
Combined button and popup list for selecting options.