Use exact component value equality checks in equality comparisons
(cherry picked from commit 2cddf3de97943844512b2d84aa6be122c6f0d409)
This commit is contained in:
@@ -59,7 +59,7 @@ API_STRUCT() struct HingeJointDrive
|
||||
public:
|
||||
bool operator==(const HingeJointDrive& other) const
|
||||
{
|
||||
return Math::NearEqual(Velocity, other.Velocity) && Math::NearEqual(ForceLimit, other.ForceLimit) && Math::NearEqual(GearRatio, other.GearRatio) && FreeSpin == other.FreeSpin;
|
||||
return Velocity == other.Velocity && ForceLimit == other.ForceLimit && GearRatio == other.GearRatio && FreeSpin == other.FreeSpin;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user