浏览代码

Added accessor for BodyIDs

jorrit 4 年之前
父节点
当前提交
29697e099c
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      Jolt/Physics/Ragdoll/Ragdoll.h

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

@@ -149,6 +149,9 @@ public:
 	/// Access a body ID
 	BodyID								GetBodyID(int inBodyIndex) const						{ return mBodyIDs[inBodyIndex]; }
 
+	/// Access to the array of body IDs
+	const vector<BodyID> &				GetBodyIDs() const										{ return mBodyIDs; }
+
 	/// Get number of constraints in the ragdoll
 	size_t								GetConstraintCount() const								{ return mConstraints.size(); }