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

_bodyExitTree
void _bodyExitTree()
getBias
double getBias()
getExcludeNodesFromCollision
bool getExcludeNodesFromCollision()
getNodeA
NodePath getNodeA()
getNodeB
NodePath getNodeB()
opAssign
typeof(null) opAssign(typeof(null) n)
opEquals
bool opEquals(Joint2D other)
opEquals
bool opEquals(typeof(null) n)
setBias
void setBias(double bias)
setExcludeNodesFromCollision
void setExcludeNodesFromCollision(bool enable)
setNodeA
void setNodeA(NodePathArg0 node)
setNodeB
void setNodeB(NodePathArg0 node)
toHash
size_t toHash()

Mixins

__anonymous
mixin baseCasts
Undocumented in source.

Properties

bias
double bias [@property getter]
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.

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

If true, nodeA and nodeB can not collide.

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()

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