Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


CreateJoint

Create a PhysicsDistanceJoint in the world. See PhysicsDistanceJoint.Create.
Read time 1 minuteLast updated 10 days ago

Definition

CreateJoint(PhysicsDistanceJointDefinition)

Create a PhysicsDistanceJoint in the world. See PhysicsDistanceJoint.Create.
public PhysicsDistanceJoint CreateJoint(PhysicsDistanceJointDefinition definition)

Parameters

The joint definition to use.

Returns

Type

Description

PhysicsDistanceJointThe created joint.

CreateJoint(PhysicsRelativeJointDefinition)

Create a PhysicsRelativeJoint in the world. See PhysicsRelativeJoint.Create.
public PhysicsRelativeJoint CreateJoint(PhysicsRelativeJointDefinition definition)

Parameters

The joint definition to use.

Returns

Type

Description

PhysicsRelativeJointThe created joint.

CreateJoint(PhysicsIgnoreJointDefinition)

Create an PhysicsIgnoreJoint in the world. See PhysicsIgnoreJoint.Create.
public PhysicsIgnoreJoint CreateJoint(PhysicsIgnoreJointDefinition definition)

Parameters

The joint definition to use.

Returns

Type

Description

PhysicsIgnoreJointThe created joint.

CreateJoint(PhysicsSliderJointDefinition)

Create a PhysicsSliderJoint in the world. See PhysicsSliderJoint.Create.
public PhysicsSliderJoint CreateJoint(PhysicsSliderJointDefinition definition)

Parameters

The joint definition to use.

Returns

Type

Description

PhysicsSliderJointThe created joint.

CreateJoint(PhysicsHingeJointDefinition)

Create a PhysicsHingeJoint in the world. See PhysicsHingeJoint.Create.
public PhysicsHingeJoint CreateJoint(PhysicsHingeJointDefinition definition)

Parameters

The joint definition to use.

Returns

Type

Description

PhysicsHingeJointThe created joint.

CreateJoint(PhysicsFixedJointDefinition)

Create a PhysicsFixedJoint in the world. See PhysicsFixedJoint.Create.
public PhysicsFixedJoint CreateJoint(PhysicsFixedJointDefinition definition)

Parameters

The joint definition to use.

Returns

Type

Description

PhysicsFixedJointThe created joint.

CreateJoint(PhysicsWheelJointDefinition)

Create a PhysicsWheelJoint in the world. See PhysicsWheelJoint.Create.
public PhysicsWheelJoint CreateJoint(PhysicsWheelJointDefinition definition)

Parameters

The joint definition to use.

Returns

Type

Description

PhysicsWheelJointThe created joint.