Browse Source

Added ScaledShapeSettings constructor which takes concrete shape (#356)

Mikael Hermansson 2 years ago
parent
commit
ea157155bb
1 changed files with 3 additions and 0 deletions
  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;