Files
FlaxEngine/Source/Engine/Physics/HingeJoint.cs
2024-02-26 19:00:48 +01:00

23 lines
778 B
C#

// Copyright (c) 2012-2024 Wojciech Figat. All rights reserved.
namespace FlaxEngine
{
partial struct HingeJointDrive
{
/// <summary>
/// Initializes a new instance of the <see cref="HingeJointDrive"/> struct.
/// </summary>
/// <param name="velocity">The velocity.</param>
/// <param name="forceLimit">The force limit.</param>
/// <param name="gearRatio">The gear ratio.</param>
/// <param name="freeSpin">if set to <c>true</c> [free spin].</param>
public HingeJointDrive(float velocity, float forceLimit, float gearRatio, bool freeSpin)
{
Velocity = velocity;
ForceLimit = forceLimit;
GearRatio = gearRatio;
FreeSpin = freeSpin;
}
}
}