Joint3D
Abstract base class for all 3D physics joints.
Joint3D.swift:11class Joint3D
Abstract base class for all joints in 3D physics. 3D joints bind together two physics bodies and apply a constraint.
Superclasses
class Node3D
Most basic 3D game object, parent of all 3D-related nodes.
Citizens in SwiftGodot
Conformances
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Equatable
A type that can be compared for value equality.
protocol Hashable
A type that can be hashed into a
Hasher
to produce an integer hash value.protocol Identifiable<ID>
A class of types whose instances hold the value of an entity with stable identity.
protocol VariantRepresentable
Types that conform to VariantRepresentable can be stored directly in
Variant
with no conversion. These include all of the Variant types from Godot (for exampleGString
,Rect
,Plane
), Godot objects (those that subclass SwiftGodot.Object) as well as the built-in Swift types UInt8, Int64 and Double.protocol VariantStorable
Types that conform to VariantStorable can be stored in a Variant and can be extracted back out of a Variant.
Type members
Instance members
var excludeNodesFromCollision: Bool
If
true
, the two bodies of the nodes are not able to collide with each other.var nodeA: NodePath
The node attached to the first side (A) of the joint.
var nodeB: NodePath
The node attached to the second side (B) of the joint.
var solverPriority: Int32
The priority used to define which solver is executed first for multiple joints. The lower the value, the higher the priority.
func getRid(
) -> RID Returns the joint’s
RID
.
Subclasses
class ConeTwistJoint3D
A physics joint that connects two 3D physics bodies in a way that simulates a ball-and-socket joint.
class Generic6DOFJoint3D
A physics joint that allows for complex movement and rotation between two 3D physics bodies.
class HingeJoint3D
A physics joint that restricts the rotation of a 3D physics body around an axis relative to another physics body.
class PinJoint3D
A physics joint that attaches two 3D physics bodies at a single point, allowing them to freely rotate.
class SliderJoint3D
A physics joint that restricts the movement of a 3D physics body along an axis relative to another physics body.