ドキュメント

Unity Engine

Unity Engine

implicit operator PhysicsJoint

Cast to the base PhysicsJoint.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

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

implicit operator PhysicsJoint(PhysicsJoin)

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

Parameters

The current joint.

Returns

Type

Description

PhysicsJoint

implicit operator PhysicsFixedJoint(PhysicsFixedJoin)

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

Parameters

The base joint to cast.

Returns

Type

Description

PhysicsFixedJoint