文档

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(PhysicsSliderJoint joint)

Parameters

The current joint.

Returns

Type

Description

PhysicsJoint

implicit operator PhysicsSliderJoint(PhysicsSliderJoin)

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

Parameters

The base joint to cast.

Returns

Type

Description

PhysicsSliderJoint