Joint2D

Base node for all joint constraints in 2D physics.

Joints take 2 bodies and apply a custom constraint.

Members

Aliases

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

Functions

getBias
double getBias()
getExcludeNodesFromCollision
bool getExcludeNodesFromCollision()
getNodeA
NodePath getNodeA()
getNodeB
NodePath getNodeB()
opAssign
Joint2D opAssign(T n)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(Joint2D other)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(typeof(null) n)
Undocumented in source. Be warned that the author may not have intended to support it.
setBias
void setBias(double bias)
setExcludeNodesFromCollision
void setExcludeNodesFromCollision(bool enable)
setNodeA
void setNodeA(NodePathArg0 node)
setNodeB
void setNodeB(NodePathArg0 node)

Mixins

__anonymous
mixin baseCasts
Undocumented in source.

Properties

bias
double bias [@property setter]

When nodeA and nodeB move in different directions the bias controls how fast the joint pulls them back to their original position. The lower the bias the more the two bodies can pull on the joint. Default value: 0

bias
double bias [@property getter]

When nodeA and nodeB move in different directions the bias controls how fast the joint pulls them back to their original position. The lower the bias the more the two bodies can pull on the joint. Default value: 0

disableCollision
bool disableCollision [@property getter]
bool disableCollision [@property setter]

If true nodeA and nodeB can collide. Default value: false.

nodeA
NodePath nodeA [@property getter]
NodePath nodeA [@property setter]

The first body attached to the joint. Must derive from PhysicsBody2D.

nodeB
NodePath nodeB [@property getter]
NodePath nodeB [@property setter]

The second body attached to the joint. Must derive from PhysicsBody2D.

Static functions

_new
Joint2D _new()
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

_classBindingInitialized
bool _classBindingInitialized;
Undocumented in source.

Structs

_classBinding
struct _classBinding
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
To as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
To as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
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