فهرست منبع

Added non-settings constructor to OffsetCenterOfMassShape (#710)

Mikael Hermansson 2 سال پیش
والد
کامیت
dd1d4a670c
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  1. 1 0
      Jolt/Physics/Collision/Shape/OffsetCenterOfMassShape.h

+ 1 - 0
Jolt/Physics/Collision/Shape/OffsetCenterOfMassShape.h

@@ -40,6 +40,7 @@ public:
 	/// Constructor
 	/// Constructor
 									OffsetCenterOfMassShape() : DecoratedShape(EShapeSubType::OffsetCenterOfMass) { }
 									OffsetCenterOfMassShape() : DecoratedShape(EShapeSubType::OffsetCenterOfMass) { }
 									OffsetCenterOfMassShape(const OffsetCenterOfMassShapeSettings &inSettings, ShapeResult &outResult);
 									OffsetCenterOfMassShape(const OffsetCenterOfMassShapeSettings &inSettings, ShapeResult &outResult);
+									OffsetCenterOfMassShape(const Shape *inShape, Vec3Arg inOffset) : DecoratedShape(EShapeSubType::OffsetCenterOfMass, inShape), mOffset(inOffset) { }
 
 
 	/// Access the offset that is applied to the center of mass
 	/// Access the offset that is applied to the center of mass
 	Vec3							GetOffset() const										{ return mOffset; }
 	Vec3							GetOffset() const										{ return mOffset; }