Explorar o código

Character: Add GetLayer method (#1189)

Jérôme Leclercq hai 1 ano
pai
achega
ab3506caf6
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      Jolt/Physics/Character/Character.h

+ 3 - 0
Jolt/Physics/Character/Character.h

@@ -105,6 +105,9 @@ public:
 	/// Calculate the world transform of the character
 	RMat44								GetWorldTransform(bool inLockBodies = true) const;
 
+	/// Get the layer of the character
+	ObjectLayer							GetLayer() const										{ return mLayer; }
+
 	/// Update the layer of the character
 	void								SetLayer(ObjectLayer inLayer, bool inLockBodies = true);