Class ConeTwistJoint3D
- Namespace
- Godot
- Assembly
- GodotSharp.dll
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.
public class ConeTwistJoint3D : Joint3D, IDisposable
- Inheritance
-
ConeTwistJoint3D
- Implements
- Inherited Members
Constructors
ConeTwistJoint3D()
public ConeTwistJoint3D()
Properties
Bias
The speed with which the swing or twist will take place.
The higher, the faster.
public float Bias { get; set; }
Property Value
Relaxation
Defines, how fast the swing- and twist-speed-difference on both sides gets synced.
public float Relaxation { get; set; }
Property Value
Softness
The ease with which the joint starts to twist. If it's too low, it takes more force to start twisting the joint.
public float Softness { get; set; }
Property Value
SwingSpan
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.
public float SwingSpan { get; set; }
Property Value
TwistSpan
Twist is the rotation around the twist axis, this value defined how far the joint can twist.
Twist is locked if below 0.05.
public float TwistSpan { get; set; }
Property Value
Methods
HasGodotClassMethod(in godot_string_name)
Check if the type contains a method with the given name. This method is used by Godot to check if a method exists before invoking it. Do not call or override this method.
protected override bool HasGodotClassMethod(in godot_string_name method)
Parameters
method
godot_string_nameName of the method to check for.
Returns
HasGodotClassSignal(in godot_string_name)
Check if the type contains a signal with the given name. This method is used by Godot to check if a signal exists before raising it. Do not call or override this method.
protected override bool HasGodotClassSignal(in godot_string_name signal)
Parameters
signal
godot_string_nameName of the signal to check for.
Returns
InvokeGodotClassMethod(in godot_string_name, NativeVariantPtrArgs, out godot_variant)
Invokes the method with the given name, using the given arguments. This method is used by Godot to invoke methods from the engine side. Do not call or override this method.
protected override bool InvokeGodotClassMethod(in godot_string_name method, NativeVariantPtrArgs args, out godot_variant ret)
Parameters
method
godot_string_nameName of the method to invoke.
args
NativeVariantPtrArgsArguments to use with the invoked method.
ret
godot_variantValue returned by the invoked method.