A hinge between two 3D bodies.
    public class HingeJoint : Joint

A HingeJoint normally uses the Z axis of body A as the hinge axis, another axis can be specified when adding it manually though.

Inheritance Chain

Constructors

    public HingeJoint()

Properties

    public float AngularLimit__bias { get; set; }

The speed with which the rotation across the axis perpendicular to the hinge gets corrected.

    public bool AngularLimit__enable { get; set; }

If true, the hinges maximum and minimum rotation, defined by AngularLimit__lower and AngularLimit__upper has effects.

    public float AngularLimit__lower { get; set; }

The minimum rotation. Only active if AngularLimit__enable is true.

    public float AngularLimit__relaxation { get; set; }

The lower this value, the more the rotation gets slowed down.

    public float AngularLimit__softness { get; set; }

    public float AngularLimit__upper { get; set; }

The maximum rotation. Only active if AngularLimit__enable is true.

    public bool Motor__enable { get; set; }

When activated, a motor turns the hinge.

    public float Motor__maxImpulse { get; set; }

Maximum acceleration for the motor.

    public float Motor__targetVelocity { get; set; }

Target speed for the motor.

    public float Params__bias { get; set; }

The speed with which the two bodies get pulled together when they move in different directions.

Methods

    [Obsolete("GetFlag is deprecated. Use the Motor__enable property instead.")]
    public bool GetFlag(Flag flag)

    [Obsolete("GetParam is deprecated. Use the Motor__maxImpulse property instead.")]
    public float GetParam(Param param)

    [Obsolete("SetFlag is deprecated. Use the Motor__enable property instead.")]
    public void SetFlag(Flag flag, bool enabled)

    [Obsolete("SetParam is deprecated. Use the Motor__maxImpulse property instead.")]
    public void SetParam(Param param, float value)

Inner Types

Flag

Name Value Description
UseLimit 0 If [code]true[/code], the hinges maximum and minimum rotation, defined by [member angular_limit/lower] and [member angular_limit/upper] has effects.
EnableMotor 1 When activated, a motor turns the hinge.
Max 2 Represents the size of the [enum Flag] enum.

Param

Name Value Description
Bias 0 The speed with which the two bodies get pulled together when they move in different directions.
LimitUpper 1 The maximum rotation. Only active if [member angular_limit/enable] is [code]true[/code].
LimitLower 2 The minimum rotation. Only active if [member angular_limit/enable] is [code]true[/code].
LimitBias 3 The speed with which the rotation across the axis perpendicular to the hinge gets corrected.
LimitSoftness 4  
LimitRelaxation 5 The lower this value, the more the rotation gets slowed down.
MotorTargetVelocity 6 Target speed for the motor.
MotorMaxImpulse 7 Maximum acceleration for the motor.
Max 8 Represents the size of the [enum Param] enum.
Tags: