Browse Source

Added missing constructor to EmptyShape (#1277)

Mikael Hermansson 1 year ago
parent
commit
f15b519d62
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Jolt/Physics/Collision/Shape/EmptyShape.h

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

@@ -29,6 +29,7 @@ class JPH_EXPORT EmptyShape final : public Shape
 public:
 	// Constructor
 							EmptyShape() : Shape(EShapeType::Empty, EShapeSubType::Empty) { }
+	explicit				EmptyShape(Vec3Arg inCenterOfMass) : Shape(EShapeType::Empty, EShapeSubType::Empty), mCenterOfMass(inCenterOfMass) { }
 							EmptyShape(const EmptyShapeSettings &inSettings, ShapeResult &outResult) : Shape(EShapeType::Empty, EShapeSubType::Empty, inSettings, outResult), mCenterOfMass(inSettings.mCenterOfMass) { outResult.Set(this); }
 
 	// See: Shape