aboutsummaryrefslogtreecommitdiff
path: root/PhysX_3.4/Source/LowLevel/software/include
diff options
context:
space:
mode:
authorsschirm <[email protected]>2016-12-23 14:20:36 +0100
committersschirm <[email protected]>2016-12-23 14:56:17 +0100
commitef6937e69e8ee3f409cf9d460d5ad300a65d5924 (patch)
tree710426e8daa605551ce3f34b581897011101c30f /PhysX_3.4/Source/LowLevel/software/include
parentInitial commit: (diff)
downloadphysx-3.4-ef6937e69e8ee3f409cf9d460d5ad300a65d5924.tar.xz
physx-3.4-ef6937e69e8ee3f409cf9d460d5ad300a65d5924.zip
PhysX 3.4 / APEX 1.4 release candidate @21506124
Diffstat (limited to 'PhysX_3.4/Source/LowLevel/software/include')
-rw-r--r--PhysX_3.4/Source/LowLevel/software/include/PxsRigidBody.h6
1 files changed, 3 insertions, 3 deletions
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); }