From ef6937e69e8ee3f409cf9d460d5ad300a65d5924 Mon Sep 17 00:00:00 2001 From: sschirm Date: Fri, 23 Dec 2016 14:20:36 +0100 Subject: PhysX 3.4 / APEX 1.4 release candidate @21506124 --- PhysX_3.4/Source/LowLevel/software/include/PxsRigidBody.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'PhysX_3.4/Source/LowLevel/software/include') diff --git a/PhysX_3.4/Source/LowLevel/software/include/PxsRigidBody.h b/PhysX_3.4/Source/LowLevel/software/include/PxsRigidBody.h index 0bbfc8ec..c63b33a1 100644 --- a/PhysX_3.4/Source/LowLevel/software/include/PxsRigidBody.h +++ b/PhysX_3.4/Source/LowLevel/software/include/PxsRigidBody.h @@ -95,16 +95,16 @@ class PxsRigidBody : public PxcRigidBody return axis * angle * 1.0f/dt; } - PX_FORCE_INLINE PxTransform getLastCCDTransform() const { return mLastTransform; } + PX_FORCE_INLINE const PxTransform& getLastCCDTransform() const { return mLastTransform;} PX_FORCE_INLINE void saveLastCCDTransform() { mLastTransform = mCore->body2World; } PX_FORCE_INLINE bool isKinematic() const { return (mCore->inverseMass == 0.0f); } PX_FORCE_INLINE void setPose(const PxTransform& pose) { mCore->body2World = pose; } PX_FORCE_INLINE void setPosition(const PxVec3& position) { mCore->body2World.p = position; } - PX_FORCE_INLINE PxReal getInvMass() const { return mCore->inverseMass; } + PX_FORCE_INLINE PxReal getInvMass() const { return mCore->inverseMass; } PX_FORCE_INLINE PxVec3 getInvInertia() const { return mCore->inverseInertia; } - PX_FORCE_INLINE PxReal getMass() const { return 1.0f/mCore->inverseMass; } + PX_FORCE_INLINE PxReal getMass() const { return 1.0f/mCore->inverseMass; } PX_FORCE_INLINE PxVec3 getInertia() const { return PxVec3(1.0f/mCore->inverseInertia.x, 1.0f/mCore->inverseInertia.y, 1.0f/mCore->inverseInertia.z); } -- cgit v1.2.3