aboutsummaryrefslogtreecommitdiff
path: root/PhysX_3.4/Source/PhysXVehicle/src/PxVehicleUpdate.cpp
diff options
context:
space:
mode:
authorsschirm <[email protected]>2017-02-27 16:40:12 +0100
committersschirm <[email protected]>2017-03-01 18:04:26 +0100
commit7840347c32755e94a807f978f1cbb558717ac8cf (patch)
tree295cd3ca93a45f8fcc43cf3cbf3887c0e0c5526b /PhysX_3.4/Source/PhysXVehicle/src/PxVehicleUpdate.cpp
parentPre-release comments marking end of beta. (diff)
downloadphysx-3.4-7840347c32755e94a807f978f1cbb558717ac8cf.tar.xz
physx-3.4-7840347c32755e94a807f978f1cbb558717ac8cf.zip
PhysX 3.4, APEX 1.4 final release @21757769v3.4.0-rc-2
Diffstat (limited to 'PhysX_3.4/Source/PhysXVehicle/src/PxVehicleUpdate.cpp')
-rw-r--r--PhysX_3.4/Source/PhysXVehicle/src/PxVehicleUpdate.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/PhysX_3.4/Source/PhysXVehicle/src/PxVehicleUpdate.cpp b/PhysX_3.4/Source/PhysXVehicle/src/PxVehicleUpdate.cpp
index 14de8f00..9603d2bb 100644
--- a/PhysX_3.4/Source/PhysXVehicle/src/PxVehicleUpdate.cpp
+++ b/PhysX_3.4/Source/PhysXVehicle/src/PxVehicleUpdate.cpp
@@ -2304,7 +2304,7 @@ bool intersectRayPlane
const PxVec4& hitPlane,
PxF32& jounce, PxVec3& wheelBottomPos)
{
-
+ PX_UNUSED(width);
//Compute the raycast start pos and direction.
PxVec3 v, w;
@@ -2325,7 +2325,6 @@ bool intersectRayPlane
//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.
@@ -7425,9 +7424,9 @@ void PxVehicleWheels4SuspensionSweeps
wheelShape->getConvexMeshGeometry(convMeshGeom);
convMeshGeom.scale.scale =
PxVec3(
- gRight.x*sweepWidthScale + (gUp.x + gForward.x)*sweepRadiusScale,
- gRight.y*sweepWidthScale + (gUp.y + gForward.y)*sweepRadiusScale,
- gRight.z*sweepWidthScale + (gUp.z + gForward.z)*sweepRadiusScale);
+ PxAbs(gRight.x*sweepWidthScale + (gUp.x + gForward.x)*sweepRadiusScale),
+ PxAbs(gRight.y*sweepWidthScale + (gUp.y + gForward.y)*sweepRadiusScale),
+ PxAbs(gRight.z*sweepWidthScale + (gUp.z + gForward.z)*sweepRadiusScale));
suspGeometry.storeAny(convMeshGeom);
}
else if (PxGeometryType::eCAPSULE == wheelShape->getGeometryType())