From ef6937e69e8ee3f409cf9d460d5ad300a65d5924 Mon Sep 17 00:00:00 2001 From: sschirm Date: Fri, 23 Dec 2016 14:20:36 +0100 Subject: PhysX 3.4 / APEX 1.4 release candidate @21506124 --- PhysX_3.4/Source/PhysXVehicle/src/PxVehicleUpdate.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'PhysX_3.4/Source/PhysXVehicle/src/PxVehicleUpdate.cpp') diff --git a/PhysX_3.4/Source/PhysXVehicle/src/PxVehicleUpdate.cpp b/PhysX_3.4/Source/PhysXVehicle/src/PxVehicleUpdate.cpp index 56758d8e..3ed6884d 100644 --- a/PhysX_3.4/Source/PhysXVehicle/src/PxVehicleUpdate.cpp +++ b/PhysX_3.4/Source/PhysXVehicle/src/PxVehicleUpdate.cpp @@ -3266,10 +3266,10 @@ void processSuspTireWheels //Clamp the spring compression so that it is never greater than the max bounce. //Apply the susp limit constraint if the spring compression is greater than the max bounce. - suspLimitErrors[i] = dx - susp.mMaxCompression; + suspLimitErrors[i] = (w.dot(hitNorm))*(-dx + susp.mMaxCompression); suspLimitActiveFlags[i] = (dx > susp.mMaxCompression); suspLimitCMOffsets[i] = bodySpaceWheelCentreOffset; - suspLimitDirs[i] = bodySpaceSuspTravelDir; + suspLimitDirs[i] = carChassisTrnsfm.q.rotateInv(-hitNorm); jounce=PxMin(dx,susp.mMaxCompression); //Store the jounce (having a local copy avoids lhs). -- cgit v1.2.3