Преглед изворни кода

Added ScaledShapeSettings constructor which takes concrete shape (#356)

Mikael Hermansson пре 3 година
родитељ
комит
ea157155bb
1 измењених фајлова са 3 додато и 0 уклоњено
  1. 3 0
      Jolt/Physics/Collision/Shape/ScaledShape.h

+ 3 - 0
Jolt/Physics/Collision/Shape/ScaledShape.h

@@ -21,6 +21,9 @@ class ScaledShapeSettings final : public DecoratedShapeSettings
 	/// Constructor that decorates another shape with a scale
 									ScaledShapeSettings(const ShapeSettings *inShape, Vec3Arg inScale) : DecoratedShapeSettings(inShape), mScale(inScale) { }
 
+	/// Variant that uses a concrete shape, which means this object cannot be serialized.
+									ScaledShapeSettings(const Shape *inShape, Vec3Arg inScale) : DecoratedShapeSettings(inShape), mScale(inScale) { }
+
 	// See: ShapeSettings
 	virtual ShapeResult				Create() const override;