Struct HingeJointDrive
Properties of a drive that drives the joint's angular velocity towards a particular value.
Assembly: FlaxEngine.dll
File: Engine/Physics/Joints/HingeJoint.h
Syntax
public struct HingeJointDrive
Fields
ForceLimit
Maximum torque the drive is allowed to apply.
Declaration
public float ForceLimit = MAX_float
Field Value
float
|
FreeSpin
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.
Declaration
public bool FreeSpin = false
Field Value
bool
|
GearRatio
Scales the velocity of the first body, and its response to drive torque is scaled down.
Declaration
public float GearRatio = 1.0f
Field Value
float
|
Velocity
Target velocity of the joint.
Declaration
public float Velocity = 0.0f
Field Value
float
|
Methods
operator==(const HingeJointDrive& other)
Declaration
public bool operator==(const HingeJointDrive& other) const
Parameters
HingeJointDrive
other
|
Returns
bool
|