Explorar o código

Added const accessors for the BodyInterface

Jorrit Rouwe %!s(int64=3) %!d(string=hai) anos
pai
achega
a8f5c7904e
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      Jolt/Physics/PhysicsSystem.h

+ 2 - 0
Jolt/Physics/PhysicsSystem.h

@@ -58,7 +58,9 @@ public:
 	const PhysicsSettings &		GetPhysicsSettings() const									{ return mPhysicsSettings; }
 
 	/// Access to the body interface. This interface allows to to create / remove bodies and to change their properties.
+	const BodyInterface &		GetBodyInterface() const									{ return mBodyInterfaceLocking; }
 	BodyInterface &				GetBodyInterface() 											{ return mBodyInterfaceLocking; }
+	const BodyInterface &		GetBodyInterfaceNoLock() const								{ return mBodyInterfaceNoLock; } ///< Version that does not lock the bodies, use with great care!
 	BodyInterface & 			GetBodyInterfaceNoLock()									{ return mBodyInterfaceNoLock; } ///< Version that does not lock the bodies, use with great care!
 
 	/// Access to the broadphase interface that allows coarse collision queries