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

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

    public bool GetFlag(Flag flag)

    public float GetParam(Param param)

    public void SetFlag(Flag flag, bool enabled)

    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 End flag of FLAG_* constants, used internally.

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 End flag of PARAM_* constants, used internally.
Tags: