Generic6DOFJoint3D
A physics joint that allows for complex movement and rotation between two 3D physics bodies.
Generic6DOFJoint3D.swift:20class Generic6DOFJoint3D
The Generic6DOFJoint3D
(6 Degrees Of Freedom) joint allows for implementing custom types of joints by locking the rotation and translation of certain axes.
The first 3 DOF represent the linear motion of the physics bodies and the last 3 DOF represent the angular motion of the physics bodies. Each axis can be either locked, or limited.
Superclasses
class Joint3D
Abstract base class for all 3D physics joints.
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.
Types
Type members
Instance members
func getFlagX(flag: Generic6DOFJoint3D.Flag
) -> Bool func getFlagY(flag: Generic6DOFJoint3D.Flag
) -> Bool func getFlagZ(flag: Generic6DOFJoint3D.Flag
) -> Bool func getParamX(param: Generic6DOFJoint3D.Param
) -> Double func getParamY(param: Generic6DOFJoint3D.Param
) -> Double func getParamZ(param: Generic6DOFJoint3D.Param
) -> Double func setFlagX(flag: Generic6DOFJoint3D.Flag, value: Bool
) func setFlagY(flag: Generic6DOFJoint3D.Flag, value: Bool
) func setFlagZ(flag: Generic6DOFJoint3D.Flag, value: Bool
) func setParamX(param: Generic6DOFJoint3D.Param, value: Double
) func setParamY(param: Generic6DOFJoint3D.Param, value: Double
) func setParamZ(param: Generic6DOFJoint3D.Param, value: Double
)