2
0
Эх сурвалжийг харах

Added non-settings constructor to OffsetCenterOfMassShape (#710)

Mikael Hermansson 1 жил өмнө
parent
commit
dd1d4a670c

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

@@ -40,6 +40,7 @@ public:
 	/// Constructor
 									OffsetCenterOfMassShape() : DecoratedShape(EShapeSubType::OffsetCenterOfMass) { }
 									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
 	Vec3							GetOffset() const										{ return mOffset; }