FixedJoint2D
Connects two Rigidbody2D together at their anchor points using a configurable spring.
阅读时间7 分钟最后更新于 1 个月前
Definition
- Type: Class
- Namespace: UnityEngine
- Assembly: UnityEngine.Physics2DModule
- Inherits from: AnchoredJoint2D
public sealed class FixedJoint2D : AnchoredJoint2D
Properties
Property | Description |
|---|---|
| dampingRatio | The amount by which the spring force is reduced in proportion to the movement speed. |
| frequency | The frequency at which the spring oscillates around the distance between the objects. |
| referenceAngle | The angle referenced between the two bodies used as the constraint for the joint. |
Inheritance
Operators
Operator | Description |
|---|---|
| operator == | Compares two object references to see if they refer to the same object. |
| bool | Determines whether the object exists. |
| operator != | Compares if two objects refer to a different object. |