文档

Unity Engine

Unity Engine

PhysicsSliderJoint

Create a joint from a physics handle. NOTE: You must ensure that the physics handle represents the correct object type otherwise hard to detect bugs can occur.
阅读时间1 分钟最后更新于 1 个月前

Definition

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

PhysicsSliderJoint(PhysicsHandle)

Create a joint from a physics handle.
NOTE: You must ensure that the physics handle represents the correct object type otherwise hard to detect bugs can occur.
public PhysicsSliderJoint(PhysicsHandle physicsHandle)

Parameters

physicsHandle

The physics handle to use.

PhysicsSliderJoint(PhysicsJoint)

Create a PhysicsSliderJoint from the specified base joint. The provided joint must be a joint type of PhysicsJoint.JointType.SliderJoint.
public PhysicsSliderJoint(PhysicsJoint physicsJoint)

Parameters

physicsJoint

The base joint to cast.