diff options
| author | sschirm <[email protected]> | 2017-01-06 14:45:46 +0100 |
|---|---|---|
| committer | sschirm <[email protected]> | 2017-01-06 14:45:46 +0100 |
| commit | c7a921796332e8fcd51f3e05c1a318a41282e1e2 (patch) | |
| tree | 770db0c76e954045fe5178a36a7519b26df6942a /PhysX_3.4/Source/PhysXVehicle/src/PxVehicleUpdate.cpp | |
| parent | PhysX 3.4, APEX 1.4 release candidate update: @21511067-21511214 (diff) | |
| download | physx-3.4-c7a921796332e8fcd51f3e05c1a318a41282e1e2.tar.xz physx-3.4-c7a921796332e8fcd51f3e05c1a318a41282e1e2.zip | |
PhysX 3.4, APEX 1.4 release candidate update: @21542069
Diffstat (limited to 'PhysX_3.4/Source/PhysXVehicle/src/PxVehicleUpdate.cpp')
| -rw-r--r-- | PhysX_3.4/Source/PhysXVehicle/src/PxVehicleUpdate.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/PhysX_3.4/Source/PhysXVehicle/src/PxVehicleUpdate.cpp b/PhysX_3.4/Source/PhysXVehicle/src/PxVehicleUpdate.cpp index 3923edb9..14de8f00 100644 --- a/PhysX_3.4/Source/PhysXVehicle/src/PxVehicleUpdate.cpp +++ b/PhysX_3.4/Source/PhysXVehicle/src/PxVehicleUpdate.cpp @@ -23,7 +23,7 @@ // components in life support devices or systems without express written approval of // NVIDIA Corporation. // -// Copyright (c) 2008-2016 NVIDIA Corporation. All rights reserved. +// Copyright (c) 2008-2017 NVIDIA Corporation. All rights reserved. // Copyright (c) 2004-2008 AGEIA Technologies, Inc. All rights reserved. // Copyright (c) 2001-2004 NovodeX AG. All rights reserved. @@ -2304,7 +2304,7 @@ bool intersectRayPlane const PxVec4& hitPlane, PxF32& jounce, PxVec3& wheelBottomPos) { - const PxVec3 hitNorm = PxVec3(hitPlane.x, hitPlane.y, hitPlane.z); + //Compute the raycast start pos and direction. PxVec3 v, w; @@ -2331,7 +2331,8 @@ bool intersectRayPlane //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. //t=-(n.v + d)/n.w const PxF32 hitD = hitPlane.w; - const PxVec3& n = hitNorm; + + const PxVec3 n = PxVec3(hitPlane.x, hitPlane.y, hitPlane.z); const PxF32 d = hitD; const PxF32 T=-(n.dot(v) + d)/(n.dot(w)); |