aboutsummaryrefslogtreecommitdiff
path: root/PhysX_3.4/Source/PhysXVehicle/src/PxVehicleUpdate.cpp
diff options
context:
space:
mode:
authorsschirm <[email protected]>2016-12-27 13:43:54 +0100
committersschirm <[email protected]>2016-12-27 13:43:54 +0100
commit64566804758e08a4c1d13fc1f8f7cb9ea8c674c8 (patch)
treeff28d36ab8f2023176d84ba397ad5aaf508dcff6 /PhysX_3.4/Source/PhysXVehicle/src/PxVehicleUpdate.cpp
parentPhysX 3.4 / APEX 1.4 release candidate @21506124 (diff)
downloadphysx-3.4-64566804758e08a4c1d13fc1f8f7cb9ea8c674c8.tar.xz
physx-3.4-64566804758e08a4c1d13fc1f8f7cb9ea8c674c8.zip
PhysX 3.4, APEX 1.4 release candidate update: @21511067-21511214
Diffstat (limited to 'PhysX_3.4/Source/PhysXVehicle/src/PxVehicleUpdate.cpp')
-rw-r--r--PhysX_3.4/Source/PhysXVehicle/src/PxVehicleUpdate.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/PhysX_3.4/Source/PhysXVehicle/src/PxVehicleUpdate.cpp b/PhysX_3.4/Source/PhysXVehicle/src/PxVehicleUpdate.cpp
index 3ed6884d..3923edb9 100644
--- a/PhysX_3.4/Source/PhysXVehicle/src/PxVehicleUpdate.cpp
+++ b/PhysX_3.4/Source/PhysXVehicle/src/PxVehicleUpdate.cpp
@@ -2320,10 +2320,12 @@ bool intersectRayPlane
//We'll use this later to compute a position at the bottom of the wheel.
const PxVec3 pos = v;
+ //Remove this code because we handle tire width with sweeps now.
//Work out if the inner or outer disc is deeper in the plane.
- const PxVec3 latDir = carChassisTrnsfm.rotate(gRight);
- const PxF32 signDot = computeSign(hitNorm.dot(latDir));
- v -= latDir*(signDot*0.5f*width);
+ //const PxVec3 latDir = carChassisTrnsfm.rotate(gRight);
+ //const PxF32 signDot = computeSign(hitNorm.dot(latDir));
+ //v -= latDir*(signDot*0.5f*width);
+ PX_UNUSED(width);
//Work out the point on the susp line that touches the intersection plane.
//n.(v+wt)+d=0 where n,d describe the plane; v,w describe the susp ray; t is the point on the susp line.
@@ -3269,7 +3271,7 @@ void processSuspTireWheels
suspLimitErrors[i] = (w.dot(hitNorm))*(-dx + susp.mMaxCompression);
suspLimitActiveFlags[i] = (dx > susp.mMaxCompression);
suspLimitCMOffsets[i] = bodySpaceWheelCentreOffset;
- suspLimitDirs[i] = carChassisTrnsfm.q.rotateInv(-hitNorm);
+ suspLimitDirs[i] = bodySpaceSuspTravelDir;
jounce=PxMin(dx,susp.mMaxCompression);
//Store the jounce (having a local copy avoids lhs).