using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
namespace BansheeEngine
{
/** @addtogroup Physics
* @{
*/
/// Properties of a drive that drives the joint's angular velocity towards a paricular value.
[StructLayout(LayoutKind.Sequential), SerializeObject]
public partial struct HingeJointDrive
{
/// Initializes the struct with default values.
public static HingeJointDrive Default()
{
HingeJointDrive value = new HingeJointDrive();
value.speed = 0f;
value.forceLimit = 3.40282347E+38f;
value.gearRatio = 1f;
value.freeSpin = false;
return value;
}
/// Target speed of the joint.
public float speed;
/// Maximum torque the drive is allowed to apply .
public float forceLimit;
/// Scales the velocity of the first body, and its response to drive torque is scaled down.
public float gearRatio;
///
/// If the joint is moving faster than the drive's target speed, the drive will try to break. If you don't want the
/// breaking to happen set this to true.
///
public bool freeSpin;
}
/** @} */
}