瀏覽代碼

Character: Add GetLayer method (#1189)

Jérôme Leclercq 1 年之前
父節點
當前提交
ab3506caf6
共有 1 個文件被更改,包括 3 次插入0 次删除
  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);