diff options
Diffstat (limited to 'PhysX_3.4/Source/PhysXExtensions/src/ExtD6Joint.h')
| -rw-r--r-- | PhysX_3.4/Source/PhysXExtensions/src/ExtD6Joint.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/PhysX_3.4/Source/PhysXExtensions/src/ExtD6Joint.h b/PhysX_3.4/Source/PhysXExtensions/src/ExtD6Joint.h index 059ba002..9cba22af 100644 --- a/PhysX_3.4/Source/PhysXExtensions/src/ExtD6Joint.h +++ b/PhysX_3.4/Source/PhysXExtensions/src/ExtD6Joint.h @@ -33,12 +33,18 @@ #include "ExtJoint.h" #include "PxD6Joint.h" +#include "PsMathUtils.h" namespace physx { struct PxD6JointGeneratedValues; namespace Ext { + PX_FORCE_INLINE PxReal tanHalfFromSin(PxReal sin) + { + return Ps::tanHalf(sin, PxSqrt(1.0f - sin*sin)); + } + struct D6JointData : public JointData { //= ATTENTION! ===================================================================================== |