ConeTwistJoint

A twist joint between two 3D PhysicsBodies.

The joint can rotate the bodies across an axis defined by the local x-axes of the Joint. The twist axis is initiated as the X axis of the Joint. Once the Bodies swing, the twist axis is calculated as the middle of the x-axes of the Joint in the local space of the two Bodies. See also Generic6DOFJoint.

Members

Aliases

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

Enums

Constants
enum Constants
Param
enum Param

Functions

_getSwingSpan
double _getSwingSpan()
_getTwistSpan
double _getTwistSpan()
_setSwingSpan
void _setSwingSpan(double swing_span)
_setTwistSpan
void _setTwistSpan(double twist_span)
getParam
double getParam(long param)
opAssign
typeof(null) opAssign(typeof(null) n)
opEquals
bool opEquals(ConeTwistJoint other)
opEquals
bool opEquals(typeof(null) n)
setParam
void setParam(long param, double value)
toHash
size_t toHash()

Mixins

__anonymous
mixin baseCasts
Undocumented in source.

Properties

bias
double bias [@property getter]
double bias [@property setter]

The speed with which the swing or twist will take place. The higher, the faster.

relaxation
double relaxation [@property getter]
double relaxation [@property setter]

Defines, how fast the swing- and twist-speed-difference on both sides gets synced.

softness
double softness [@property getter]
double softness [@property setter]

The ease with which the joint starts to twist. If it's too low, it takes more force to start twisting the joint.

swingSpan
double swingSpan [@property getter]
double swingSpan [@property setter]

Swing is rotation from side to side, around the axis perpendicular to the twist axis. The swing span defines, how much rotation will not get corrected along the swing axis. Could be defined as looseness in the ConeTwistJoint. If below 0.05, this behavior is locked.

twistSpan
double twistSpan [@property getter]
double twistSpan [@property setter]

Twist is the rotation around the twist axis, this value defined how far the joint can twist. Twist is locked if below 0.05.

Static functions

_new
ConeTwistJoint _new()

Construct a new instance of ConeTwistJoint. Note: use memnew!ConeTwistJoint 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