Browse Source

Character: Add GetLayer method (#1189)

Jérôme Leclercq 1 năm trước cách đây
mục cha
commit
ab3506caf6
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  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);