HingeJoint

A hinge between two 3D PhysicsBodies.

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

@GodotBaseClass
struct HingeJoint {}

Members

Aliases

BaseClasses
alias BaseClasses = AliasSeq!(typeof(_GODOT_base), typeof(_GODOT_base).BaseClasses)
Undocumented in source.

Enums

Constants
enum Constants
Flag
enum Flag
Param
enum Param

Functions

_getLowerLimit
double _getLowerLimit()
_getUpperLimit
double _getUpperLimit()
_setLowerLimit
void _setLowerLimit(double lower_limit)
_setUpperLimit
void _setUpperLimit(double upper_limit)
getFlag
bool getFlag(long flag)

Returns the value of the specified flag.

getParam
double getParam(long param)

Returns the value of the specified parameter.

opAssign
typeof(null) opAssign(typeof(null) n)
opEquals
bool opEquals(HingeJoint other)
opEquals
bool opEquals(typeof(null) n)
setFlag
void setFlag(long flag, bool enabled)

If true, enables the specified flag.

setParam
void setParam(long param, double value)

Sets the value of the specified parameter.

toHash
size_t toHash()

Mixins

__anonymous
mixin baseCasts
Undocumented in source.

Properties

angularLimitBias
double angularLimitBias [@property getter]
double angularLimitBias [@property setter]

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

angularLimitEnable
bool angularLimitEnable [@property getter]
bool angularLimitEnable [@property setter]

If true, the hinges maximum and minimum rotation, defined by angularLimit/lower and angularLimit/upper has effects.

angularLimitLower
double angularLimitLower [@property getter]
double angularLimitLower [@property setter]

The minimum rotation. Only active if angularLimit/enable is true.

angularLimitRelaxation
double angularLimitRelaxation [@property getter]
double angularLimitRelaxation [@property setter]

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

angularLimitSoftness
double angularLimitSoftness [@property getter]
double angularLimitSoftness [@property setter]
angularLimitUpper
double angularLimitUpper [@property getter]
double angularLimitUpper [@property setter]

The maximum rotation. Only active if angularLimit/enable is true.

motorEnable
bool motorEnable [@property getter]
bool motorEnable [@property setter]

When activated, a motor turns the hinge.

motorMaxImpulse
double motorMaxImpulse [@property getter]
double motorMaxImpulse [@property setter]

Maximum acceleration for the motor.

motorTargetVelocity
double motorTargetVelocity [@property getter]
double motorTargetVelocity [@property setter]

Target speed for the motor.

paramsBias
double paramsBias [@property getter]
double paramsBias [@property setter]

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

Static functions

_new
HingeJoint _new()

Construct a new instance of HingeJoint. Note: use memnew!HingeJoint instead.

Static variables

_classBindingInitialized
bool _classBindingInitialized;
Undocumented in source.

Structs

GDNativeClassBinding
struct GDNativeClassBinding
Undocumented in source.

Unions

__anonymous
union __anonymous
Undocumented in source.

Variables

_GODOT_internal_name
enum string _GODOT_internal_name;
Undocumented in source.

Mixed In Members

From mixin baseCasts

as
inout(To) as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
inout(To) as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
inout(ToRef) as()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(ToRef)
Undocumented in source.
opCast
void* opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
godot_object opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
bool opCast()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta