Browse Source

Character: Add GetLayer method (#1189)

Jérôme Leclercq 1 year ago
parent
commit
ab3506caf6
1 changed files with 3 additions and 0 deletions
  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);