29#ifndef PX_HEIGHT_FIELD_GEOMETRY_H
30#define PX_HEIGHT_FIELD_GEOMETRY_H
34#include "geometry/PxTriangleMeshGeometry.h"
35#include "common/PxCoreUtilityTypes.h"
42#define PX_MIN_HEIGHTFIELD_XZ_SCALE 1e-8f
43#define PX_MIN_HEIGHTFIELD_Y_SCALE (0.0001f / PxReal(0xFFFF))
62 PxReal heightScale_ = 1.0f,
63 PxReal rowScale_ = 1.0f,
64 PxReal columnScale_ = 1.0f) :
146 if(mType != PxGeometryType::eHEIGHTFIELD)
A geometry object.
Definition PxGeometry.h:79
Height field geometry class.
Definition PxHeightFieldGeometry.h:55
PxReal heightScale
The scaling factor for the height field in vertical direction (y direction in local space).
Definition PxHeightFieldGeometry.h:123
PX_INLINE void operator=(const PxHeightFieldGeometry &that)
Assignment operator.
Definition PxHeightFieldGeometry.h:92
PX_INLINE PxHeightFieldGeometry(const PxHeightFieldGeometry &that)
Copy constructor.
Definition PxHeightFieldGeometry.h:79
PxPadding< 3 > paddingFromFlags
padding for mesh flags.
Definition PxHeightFieldGeometry.h:140
PxHeightField * heightField
The height field data.
Definition PxHeightFieldGeometry.h:118
PxReal columnScale
The scaling factor for the height field in the column direction (z direction in local space).
Definition PxHeightFieldGeometry.h:133
PX_INLINE bool isValid() const
Returns true if the geometry is valid.
Definition PxHeightFieldGeometry.h:144
PxReal rowScale
The scaling factor for the height field in the row direction (x direction in local space).
Definition PxHeightFieldGeometry.h:128
PxMeshGeometryFlags heightFieldFlags
Flags to specify some collision properties for the height field.
Definition PxHeightFieldGeometry.h:138
PX_INLINE PxHeightFieldGeometry(PxHeightField *hf=NULL, PxMeshGeometryFlags flags=PxMeshGeometryFlag::Enum(0), PxReal heightScale_=1.0f, PxReal rowScale_=1.0f, PxReal columnScale_=1.0f)
Constructor.
Definition PxHeightFieldGeometry.h:60
A height field class.
Definition PxHeightField.h:84
#define PX_INLINE
Definition PxPreprocessor.h:320
Sorts an array of objects in ascending order, assuming that the predicate implements the < operator:
Definition PxBoxController.h:39
PX_CUDA_CALLABLE PX_FORCE_INLINE bool PxIsFinite(float f)
returns true if the passed number is a finite floating point number as opposed to INF,...
Definition PxMath.h:326
A geometry type.
Definition PxGeometry.h:50
Enum
Definition PxTriangleMeshGeometry.h:53
Definition PxCoreUtilityTypes.h:103