Version: Unity 6.5 Alpha (6000.5)
LanguageEnglish
  • C#

PhysicsJoint.CreateJoint

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public static PhysicsDistanceJoint CreateJoint(PhysicsWorld world, PhysicsDistanceJointDefinition definition);

Parameters

Parameter Description
world The world to create the joint in.
definition The joint definition to use.

Returns

PhysicsDistanceJoint The created joint.

Description

Create a PhysicsDistanceJoint in the world. See PhysicsDistanceJoint.Create.


Declaration

public static PhysicsRelativeJoint CreateJoint(PhysicsWorld world, PhysicsRelativeJointDefinition definition);

Parameters

Parameter Description
world The world to create the joint in.
definition The joint definition to use.

Returns

PhysicsRelativeJoint The created joint.

Description

Create a PhysicsRelativeJoint in the world. See PhysicsRelativeJoint.Create.


Declaration

public static PhysicsIgnoreJoint CreateJoint(PhysicsWorld world, PhysicsIgnoreJointDefinition definition);

Parameters

Parameter Description
world The world to create the joint in.
definition The joint definition to use.

Returns

PhysicsIgnoreJoint The created joint.

Description

Create an IgnoreJoint in the world. See PhysicsIgnoreJoint.Create.


Declaration

public static PhysicsSliderJoint CreateJoint(PhysicsWorld world, PhysicsSliderJointDefinition definition);

Parameters

Parameter Description
world The world to create the joint in.
definition The joint definition to use.

Returns

PhysicsSliderJoint The created joint.

Description

Create a SliderJoint in the world. See PhysicsSliderJoint.Create.


Declaration

public static PhysicsHingeJoint CreateJoint(PhysicsWorld world, PhysicsHingeJointDefinition definition);

Parameters

Parameter Description
world The world to create the joint in.
definition The joint definition to use.

Returns

PhysicsHingeJoint The created joint.

Description

Create a PhysicsHingeJoint in the world. See PhysicsHingeJoint.Create.


Declaration

public static PhysicsFixedJoint CreateJoint(PhysicsWorld world, PhysicsFixedJointDefinition definition);

Parameters

Parameter Description
world The world to create the joint in.
definition The joint definition to use.

Returns

PhysicsFixedJoint The created joint.

Description

Create a FixedJoint in the world. See PhysicsFixedJoint.Create.


Declaration

public static PhysicsWheelJoint CreateJoint(PhysicsWorld world, PhysicsWheelJointDefinition definition);

Parameters

Parameter Description
world The world to create the joint in.
definition The joint definition to use.

Returns

PhysicsWheelJoint The created joint.

Description

Create a WheelJoint in the world. See PhysicsWheelJoint.Create.