31 #ifndef PX_PHYSICS_NX_CAPSULE_GEOMETRY 32 #define PX_PHYSICS_NX_CAPSULE_GEOMETRY 98 if (radius <= 0.0f || halfHeight <= 0.0f)
Definition: GuContactBuffer.h:37
Class representing the geometry of a capsule.
Definition: PxCapsuleGeometry.h:54
A geometry type.
Definition: PxGeometry.h:51
float PxReal
Definition: PxSimpleTypes.h:78
Definition: PxGeometry.h:57
A geometry object.
Definition: PxGeometry.h:75
PX_INLINE PxCapsuleGeometry()
Default constructor, initializes to a capsule with zero height and radius.
Definition: PxCapsuleGeometry.h:60
PX_INLINE PxCapsuleGeometry(PxReal radius_, PxReal halfHeight_)
Constructor, initializes to a capsule with passed radius and half height.
Definition: PxCapsuleGeometry.h:65
PX_INLINE bool isValid() const
Returns true if the geometry is valid.
Definition: PxCapsuleGeometry.h:92
PxReal radius
The radius of the capsule.
Definition: PxCapsuleGeometry.h:83
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:292
PxReal halfHeight
half of the capsule's height, measured between the centers of the hemispherical ends.
Definition: PxCapsuleGeometry.h:88
#define PX_FOUNDATION_API
Definition: PxPreprocessor.h:318
PX_FOUNDATION_API PxTransform PxTransformFromSegment(const PxVec3 &p0, const PxVec3 &p1, PxReal *halfHeight=NULL)
creates a transform from the endpoints of a segment, suitable for an actor transform for a PxCapsuleG...
#define PX_INLINE
Definition: PxPreprocessor.h:349
3 Element vector class.
Definition: PxVec3.h:49