فهرست منبع

Added GetHairSettings accessor

Fixes #1896
Jorrit Rouwe 7 ساعت پیش
والد
کامیت
c23452e27f
1فایلهای تغییر یافته به همراه3 افزوده شده و 0 حذف شده
  1. 3 0
      Jolt/Physics/Hair/Hair.h

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

@@ -46,6 +46,9 @@ public:
 	void								SetRotation(QuatArg inRotation)					{ mRotation = inRotation; }
 	RMat44								GetWorldTransform() const						{ return RMat44::sRotationTranslation(mRotation, mPosition); }
 
+	/// Access to the hair settings object which contains the configuration of the hair
+	const HairSettings *				GetHairSettings() const							{ return mSettings; }
+
 	/// The hair will be initialized in its default pose with zero velocity at the new position and rotation during the next update
 	void								OnTeleported()									{ mTeleported = true; }