35#include "foundation/PxFoundation.h"
37#include "vehicle2/PxVehicleParams.h"
94 const PxReal scale = trgScale.
scale/srcScale.
scale;
97 r.
moi *= (scale*scale);
104 PX_CHECK_AND_RETURN_VAL(
radius > 0.0f,
"PxVehicleWheelParams.radius must be greater than zero",
false);
105 PX_CHECK_AND_RETURN_VAL(
halfWidth > 0.0f,
"PxVehicleWheelParams.halfWidth must be greater than zero",
false);
106 PX_CHECK_AND_RETURN_VAL(
mass > 0.0f,
"PxVehicleWheelParams.mass must be greater than zero",
false);
107 PX_CHECK_AND_RETURN_VAL(
moi > 0.0f,
"PxVehicleWheelParams.moi must be greater than zero",
false);
108 PX_CHECK_AND_RETURN_VAL(
dampingRate >= 0.0f,
"PxVehicleWheelParams.dampingRate must be greater than or equal to zero",
false);
#define PX_FORCE_INLINE
Definition PxPreprocessor.h:335
Sorts an array of objects in ascending order, assuming that the predicate implements the < operator:
Definition PxBoxController.h:39
Definition PxVehicleParams.h:174
Definition PxVehicleParams.h:224
PxReal scale
The length scale used for the vehicle. For example, if 1.0 is considered meters, then 100....
Definition PxVehicleParams.h:225
Definition PxVehicleWheelParams.h:47
PxReal mass
Mass of unit that includes wheel plus tire.
Definition PxVehicleWheelParams.h:70
PxReal radius
Radius of unit that includes metal wheel plus rubber tire.
Definition PxVehicleWheelParams.h:54
PxReal dampingRate
Damping rate applied to wheel.
Definition PxVehicleWheelParams.h:86
PxReal halfWidth
Half-width of unit that includes wheel plus tire.
Definition PxVehicleWheelParams.h:62
PxReal moi
Moment of inertia of unit that includes wheel plus tire about the rolling axis.
Definition PxVehicleWheelParams.h:78