diff options
Diffstat (limited to 'PhysX_3.4/Source')
| -rw-r--r-- | PhysX_3.4/Source/PhysXVehicle/src/PxVehicleUpdate.cpp | 10 |
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). |