Struct Joint ​
Namespace: ValveResourceFormat.ResourceTypes.RubikonPhysics
Assembly: ValveResourceFormat.dll
Represents a constraint between two physics bodies.
public readonly struct JointConstructors ​
Joint(KVObject) ​
Initializes a new instance of the struct.
public Joint(KVObject data)Parameters ​
data KVObject
Properties ​
AngularDampingRatio ​
Gets the angular spring damping ratio.
public float AngularDampingRatio { get; }Property Value ​
AngularFrequency ​
Gets the angular spring frequency.
public float AngularFrequency { get; }Property Value ​
AngularTargetVelocity ​
Gets the target angular velocity driven by the angular motor.
public Vector3 AngularTargetVelocity { get; }Property Value ​
Body1 ​
Index into for the first body.
public int Body1 { get; }Property Value ​
Body2 ​
Index into for the second body.
public int Body2 { get; }Property Value ​
ElasticDamping ​
Gets the elastic damping.
public float ElasticDamping { get; }Property Value ​
Elasticity ​
Gets the joint elasticity (restitution).
public float Elasticity { get; }Property Value ​
EnableAngularMotor ​
Gets whether the angular motor is enabled.
public bool EnableAngularMotor { get; }Property Value ​
EnableCollision ​
Gets whether the two connected bodies still collide with each other.
public bool EnableCollision { get; }Property Value ​
EnableLinearLimit ​
Gets whether is enforced.
public bool EnableLinearLimit { get; }Property Value ​
EnableLinearMotor ​
Gets whether the linear motor is enabled.
public bool EnableLinearMotor { get; }Property Value ​
EnableSwingLimit ​
Gets whether is enforced.
public bool EnableSwingLimit { get; }Property Value ​
EnableTwistLimit ​
Gets whether is enforced.
public bool EnableTwistLimit { get; }Property Value ​
Flags ​
Gets the joint flags.
public JointFlags Flags { get; }Property Value ​
Frame1 ​
The joint frame local to the first body, as (position, scale, rotation).
public (Vector3 Position, float Scale, Quaternion Rotation) Frame1 { get; }Property Value ​
(Vector3 Position, float Scale, Quaternion Rotation)
Frame2 ​
The joint frame local to the second body, as (position, scale, rotation).
public (Vector3 Position, float Scale, Quaternion Rotation) Frame2 { get; }Property Value ​
(Vector3 Position, float Scale, Quaternion Rotation)
Friction ​
Gets the joint friction.
public float Friction { get; }Property Value ​
IsAngularConstraintDisabled ​
Gets whether the angular degrees of freedom are locked out entirely.
public bool IsAngularConstraintDisabled { get; }Property Value ​
IsLinearConstraintDisabled ​
Gets whether the linear degrees of freedom are locked out entirely.
public bool IsLinearConstraintDisabled { get; }Property Value ​
LinearDampingRatio ​
Gets the linear spring damping ratio.
public float LinearDampingRatio { get; }Property Value ​
LinearFrequency ​
Gets the linear spring frequency.
public float LinearFrequency { get; }Property Value ​
LinearLimit ​
Gets the linear motion limit along the joint axis.
public Joint.Range LinearLimit { get; }Property Value ​
LinearTargetVelocity ​
Gets the target linear velocity driven by the linear motor.
public Vector3 LinearTargetVelocity { get; }Property Value ​
MaxForce ​
Gets the maximum force the linear motor may apply.
public float MaxForce { get; }Property Value ​
MaxTorque ​
Gets the maximum torque the angular motor may apply.
public float MaxTorque { get; }Property Value ​
Plasticity ​
Gets the plasticity, how much the joint drives back to its bind pose.
public float Plasticity { get; }Property Value ​
SwingLimit ​
Gets the swing cone limit.
public Joint.Range SwingLimit { get; }Property Value ​
Tag ​
Gets an editor label for this joint.
public string? Tag { get; }Property Value ​
TwistLimit ​
Gets the twist limit around the joint axis.
public Joint.Range TwistLimit { get; }Property Value ​
Type ​
Gets the constraint type.
public JointType Type { get; }
