Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


implicit operator PhysicsJoint

Cast to the base PhysicsJoint.
Read time 1 minuteLast updated 10 days ago

Definition

  • Type: Operator
  • Namespace: Unity.U2D.Physics
  • Assembly: UnityEngine.PhysicsCore2DModule

implicit operator PhysicsJoint(PhysicsJoin)

Cast to the base PhysicsJoint.
public static implicit operator PhysicsJoint(PhysicsHingeJoint joint)

Parameters

The current joint.

Returns

Type

Description

PhysicsJoint

implicit operator PhysicsHingeJoint(PhysicsHingeJoin)

Cast to a PhysicsHingeJoint from the base PhysicsJoint. The provided joint must be a joint type of PhysicsJoint.JointType.HingeJoint.
public static implicit operator PhysicsHingeJoint(PhysicsJoint joint)

Parameters

The base joint to cast.

Returns

Type

Description

PhysicsHingeJoint