Selaa lähdekoodia

Fixed typos in usage of VecArg, Mat44Arg and ColorArg

Jorrit Rouwe 2 vuotta sitten
vanhempi
commit
4098f5e573

+ 1 - 1
Jolt/Math/Quat.h

@@ -79,7 +79,7 @@ public:
 	JPH_INLINE Vec3				GetXYZ() const													{ return Vec3(mValue); }
 
 	/// Get the quaternion as a Vec4
-	JPH_INLINE Vec4Arg 			GetXYZW() const													{ return mValue; }
+	JPH_INLINE Vec4 			GetXYZW() const													{ return mValue; }
 
 	///@}
 	///@name Default quaternions

+ 1 - 1
Jolt/Physics/Collision/CastConvexVsTriangles.cpp

@@ -12,7 +12,7 @@
 
 JPH_NAMESPACE_BEGIN
 
-CastConvexVsTriangles::CastConvexVsTriangles(const ShapeCast &inShapeCast, const ShapeCastSettings &inShapeCastSettings, const Vec3 &inScale, const ShapeFilter &inShapeFilter, const Mat44 &inCenterOfMassTransform2, const SubShapeIDCreator &inSubShapeIDCreator1, CastShapeCollector &ioCollector) :
+CastConvexVsTriangles::CastConvexVsTriangles(const ShapeCast &inShapeCast, const ShapeCastSettings &inShapeCastSettings, Vec3Arg inScale, const ShapeFilter &inShapeFilter, Mat44Arg inCenterOfMassTransform2, const SubShapeIDCreator &inSubShapeIDCreator1, CastShapeCollector &ioCollector) :
 	mShapeCast(inShapeCast),
 	mShapeCastSettings(inShapeCastSettings),
 	mShapeFilter(inShapeFilter), 

+ 1 - 1
Jolt/Physics/Collision/CastConvexVsTriangles.h

@@ -20,7 +20,7 @@ public:
 	/// @param inCenterOfMassTransform2 Is the center of mass transform of shape 2 (excluding scale), this is used to provide a transform to the shape cast result so that local quantities can be transformed into world space.
 	/// @param inSubShapeIDCreator1 Class that tracks the current sub shape ID for the casting shape
 	/// @param ioCollector The collector that receives the results.
-									CastConvexVsTriangles(const ShapeCast &inShapeCast, const ShapeCastSettings &inShapeCastSettings, const Vec3 &inScale, const ShapeFilter &inShapeFilter, const Mat44 &inCenterOfMassTransform2, const SubShapeIDCreator &inSubShapeIDCreator1, CastShapeCollector &ioCollector);
+									CastConvexVsTriangles(const ShapeCast &inShapeCast, const ShapeCastSettings &inShapeCastSettings, Vec3Arg inScale, const ShapeFilter &inShapeFilter, Mat44Arg inCenterOfMassTransform2, const SubShapeIDCreator &inSubShapeIDCreator1, CastShapeCollector &ioCollector);
 
 	/// Cast convex object with a single triangle
 	/// @param inV0 , inV1 , inV2: CCW triangle vertices

+ 1 - 1
Jolt/Physics/Collision/CastSphereVsTriangles.cpp

@@ -15,7 +15,7 @@
 
 JPH_NAMESPACE_BEGIN
 
-CastSphereVsTriangles::CastSphereVsTriangles(const ShapeCast &inShapeCast, const ShapeCastSettings &inShapeCastSettings, const Vec3 &inScale, const ShapeFilter &inShapeFilter, const Mat44 &inCenterOfMassTransform2, const SubShapeIDCreator &inSubShapeIDCreator1, CastShapeCollector &ioCollector) :
+CastSphereVsTriangles::CastSphereVsTriangles(const ShapeCast &inShapeCast, const ShapeCastSettings &inShapeCastSettings, Vec3Arg inScale, const ShapeFilter &inShapeFilter, Mat44Arg inCenterOfMassTransform2, const SubShapeIDCreator &inSubShapeIDCreator1, CastShapeCollector &ioCollector) :
 	mStart(inShapeCast.mCenterOfMassStart.GetTranslation()),
 	mDirection(inShapeCast.mDirection),
 	mShapeCastSettings(inShapeCastSettings),

+ 1 - 1
Jolt/Physics/Collision/CastSphereVsTriangles.h

@@ -19,7 +19,7 @@ public:
 	/// @param inCenterOfMassTransform2 Is the center of mass transform of shape 2 (excluding scale), this is used to provide a transform to the shape cast result so that local quantities can be transformed into world space.
 	/// @param inSubShapeIDCreator1 Class that tracks the current sub shape ID for the casting shape
 	/// @param ioCollector The collector that receives the results.
-									CastSphereVsTriangles(const ShapeCast &inShapeCast, const ShapeCastSettings &inShapeCastSettings, const Vec3 &inScale, const ShapeFilter &inShapeFilter, const Mat44 &inCenterOfMassTransform2, const SubShapeIDCreator &inSubShapeIDCreator1, CastShapeCollector &ioCollector);
+									CastSphereVsTriangles(const ShapeCast &inShapeCast, const ShapeCastSettings &inShapeCastSettings, Vec3Arg inScale, const ShapeFilter &inShapeFilter, Mat44Arg inCenterOfMassTransform2, const SubShapeIDCreator &inSubShapeIDCreator1, CastShapeCollector &ioCollector);
 
 	/// Cast sphere with a single triangle
 	/// @param inV0 , inV1 , inV2: CCW triangle vertices

+ 1 - 1
Jolt/Physics/Collision/PhysicsMaterial.h

@@ -31,7 +31,7 @@ public:
 
 	// Properties
 	virtual const char *					GetDebugName() const			{ return "Unknown"; }
-	virtual ColorArg 						GetDebugColor() const			{ return Color::sGrey; }
+	virtual Color							GetDebugColor() const			{ return Color::sGrey; }
 
 	/// Saves the contents of the material in binary form to inStream.
 	virtual void							SaveBinaryState(StreamOut &inStream) const;

+ 1 - 1
Jolt/Physics/Collision/PhysicsMaterialSimple.h

@@ -19,7 +19,7 @@ public:
 
 	// Properties
 	virtual const char *					GetDebugName() const override		{ return mDebugName.c_str(); }
-	virtual ColorArg 						GetDebugColor() const override		{ return mDebugColor; }
+	virtual Color							GetDebugColor() const override		{ return mDebugColor; }
 
 	// See: PhysicsMaterial::SaveBinaryState
 	virtual void							SaveBinaryState(StreamOut &inStream) const override;

+ 1 - 1
Jolt/Renderer/DebugRendererRecorder.h

@@ -64,7 +64,7 @@ public:
 	struct TextBlob
 	{
 										TextBlob() = default;
-										TextBlob(RVec3Arg inPosition, const string_view &inString, const Color &inColor, float inHeight) : mPosition(inPosition), mString(inString), mColor(inColor), mHeight(inHeight) { }
+										TextBlob(RVec3Arg inPosition, const string_view &inString, ColorArg inColor, float inHeight) : mPosition(inPosition), mString(inString), mColor(inColor), mHeight(inHeight) { }
 
 		RVec3							mPosition;
 		String							mString;