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

PhysicsWorld.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 PhysicsDistanceJoint CreateJoint(PhysicsDistanceJointDefinition definition);

Parameters

Parameter Description
definition The joint definition to use.

Returns

PhysicsDistanceJoint The created joint.

Description

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


Declaration

public PhysicsRelativeJoint CreateJoint(PhysicsRelativeJointDefinition definition);

Parameters

Parameter Description
definition The joint definition to use.

Returns

PhysicsRelativeJoint The created joint.

Description

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


Declaration

public PhysicsIgnoreJoint CreateJoint(PhysicsIgnoreJointDefinition definition);

Parameters

Parameter Description
definition The joint definition to use.

Returns

PhysicsIgnoreJoint The created joint.

Description

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


Declaration

public PhysicsSliderJoint CreateJoint(PhysicsSliderJointDefinition definition);

Parameters

Parameter Description
definition The joint definition to use.

Returns

PhysicsSliderJoint The created joint.

Description

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


Declaration

public PhysicsHingeJoint CreateJoint(PhysicsHingeJointDefinition definition);

Parameters

Parameter Description
definition The joint definition to use.

Returns

PhysicsHingeJoint The created joint.

Description

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


Declaration

public PhysicsFixedJoint CreateJoint(PhysicsFixedJointDefinition definition);

Parameters

Parameter Description
definition The joint definition to use.

Returns

PhysicsFixedJoint The created joint.

Description

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


Declaration

public PhysicsWheelJoint CreateJoint(PhysicsWheelJointDefinition definition);

Parameters

Parameter Description
definition The joint definition to use.

Returns

PhysicsWheelJoint The created joint.

Description

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