Inheritance #
- AudioServer
- CameraServer
- ClassDB
- DisplayServer
- EditorFileSystemDirectory
- EditorInterface
- EditorPaths
- EditorSelection
- EditorUndoRedoManager
- EditorVCSInterface
- Engine
- EngineDebugger
- FramebufferCacheRD
- GDExtensionManager
- Geometry2D
- Geometry3D
- IP
- Input
- InputMap
- JNISingleton
- JSONRPC
- JavaClassWrapper
- JavaScriptBridge
- MainLoop (1)
- Marshalls
- MovieWriter
- NativeMenu
- NavigationMeshGenerator
- NavigationServer2D
- NavigationServer3D
- Node (21)
- OS
- OpenXRExtensionWrapperExtension
- OpenXRInteractionProfileMetadata
- Performance
- PhysicsDirectBodyState2D (1)
- PhysicsDirectBodyState3D (1)
- PhysicsDirectSpaceState2D (1)
- PhysicsDirectSpaceState3D (1)
- PhysicsServer2D (1)
- PhysicsServer2DManager
- PhysicsServer3D (1)
- PhysicsServer3DManager
- PhysicsServer3DRendering
ServerHandler
- ProjectSettings
- RefCounted (121)
- RenderData (2)
- RenderSceneData (2)
- RenderingDevice
- RenderingServer
- ResourceLoader
- ResourceSaver
- ResourceUID
- ScriptLanguage (1)
- ShaderIncludeDB
- TextServerManager
- ThemeDB
- TileData
- Time
- TranslationServer
- TreeItem
- UndoRedo
- UniformSetCacheRD
- WorkerThreadPool
- XRServer
- XRVRS
- AnimationMixer (2)
- AudioStreamPlayer
- CanvasItem (2)
- CanvasLayer (1)
- EditorFileSystem
- EditorPlugin (1)
- EditorResourcePreview
- HTTPRequest
- InstancePlaceholder
- MissingNode
- MultiplayerSpawner
- MultiplayerSynchronizer
- NavigationAgent2D
- NavigationAgent3D
- Node3D (31)
- ResourcePreloader
- ShaderGlobalsOverride
- StatusIndicator
- Timer
- Viewport (2)
- WorldEnvironment
- AudioListener3D
- AudioStreamPlayer3D
- BoneAttachment3D
- Camera3D (1)
- CollisionObject3D (2)
- CollisionPolygon3D
- CollisionShape3D
- GridMap
- ImporterMeshInstance3D
- Joint3D (5)
- LightmapProbe
- Marker3D
- NavigationLink3D
- NavigationObstacle3D
- NavigationRegion3D
- OpenXRCompositionLayer (3)
- OpenXRHand
- Path3D
- PathFollow3D
- RayCast3D
- RemoteTransform3D
- ShapeCast3D
- Skeleton3D
- SkeletonModifier3D (7)
- SpringArm3D
- SpringBoneCollision3D (3)
- VehicleWheel3D
- VisualInstance3D (13)
- XRFaceModifier3D
- XRNode3D (2)
- XROrigin3D
Table of contents
-
var bias: float = 0.3 -
var relaxation: float = 1.0 -
var softness: float = 0.8 -
var swing_span: float = 0.785398 -
var twist_span: float = 3.14159 -
const func get_param(param: int enumConeTwistJoint3D.Param) -> float -
func set_param(value: float) -> void -
const PARAM_SWING_SPAN = 0 enum Param -
const PARAM_TWIST_SPAN = 1 enum Param -
const PARAM_BIAS = 2 enum Param -
const PARAM_SOFTNESS = 3 enum Param -
const PARAM_RELAXATION = 4 enum Param -
const PARAM_MAX = 5 enum Param -
enum Param
ConeTwistJoint3D #
is_instantiable, Node3D, Node, core, not_builtin_classes
A physics joint that connects two 3D physics bodies in a way that simulates a ball-and-socket joint.
A physics joint that connects two 3D physics bodies in a way that simulates a ball-and-socket joint. The twist axis is initiated as the X axis of the ConeTwistJoint3D. Once the physics bodies swing, the twist axis is calculated as the middle of the X axes of the joint in the local space of the two physics bodies. Useful for limbs like shoulders and hips, lamps hanging off a ceiling, etc.
Members #
var bias: float = 0.3#
The speed with which the swing or twist will take place.
The higher, the faster.
var relaxation: float = 1.0#
Defines, how fast the swing- and twist-speed-difference on both sides gets synced.
var softness: float = 0.8#
The ease with which the joint starts to twist. If it's too low, it takes more force to start twisting the joint.
var swing_span: float = 0.785398#
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 ConeTwistJoint3D.
If below 0.05, this behavior is locked.
var twist_span: float = 3.14159#
Twist is the rotation around the twist axis, this value defined how far the joint can twist.
Twist is locked if below 0.05.
Methods #
const func get_param(param: int enumConeTwistJoint3D.Param) -> float#
Returns the value of the specified parameter.
func set_param(value: float) -> void#
Sets the value of the specified parameter.
Annotations #
Constants #
const PARAM_SWING_SPAN = 0 enum Param#
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 ConeTwistJoint3D.
If below 0.05, this behavior is locked.
const PARAM_TWIST_SPAN = 1 enum Param#
Twist is the rotation around the twist axis, this value defined how far the joint can twist.
Twist is locked if below 0.05.
const PARAM_BIAS = 2 enum Param#
The speed with which the swing or twist will take place.
The higher, the faster.
const PARAM_SOFTNESS = 3 enum Param#
The ease with which the joint starts to twist. If it's too low, it takes more force to start twisting the joint.
const PARAM_RELAXATION = 4 enum Param#
Defines, how fast the swing- and twist-speed-difference on both sides gets synced.
const PARAM_MAX = 5 enum Param#
Represents the size of the Param enum.
Constructors #
Enums #
Param#
enum Param {
PARAM_SWING_SPAN = 0,
PARAM_TWIST_SPAN = 1,
PARAM_BIAS = 2,
PARAM_SOFTNESS = 3,
PARAM_RELAXATION = 4,
PARAM_MAX = 5,
}