Class Joint2D
Assembly: UnityEngine.dll
Syntax
[RequireComponent(typeof(Transform), typeof(Rigidbody2D))]
public class Joint2D : Behaviour
Properties
attachedRigidbody
Declaration
public Rigidbody2D attachedRigidbody { get; }
Property Value
breakForce
Declaration
public float breakForce { get; set; }
Property Value
breakTorque
Declaration
public float breakTorque { get; set; }
Property Value
connectedBody
Declaration
public Rigidbody2D connectedBody { get; set; }
Property Value
enableCollision
Declaration
public bool enableCollision { get; set; }
Property Value
reactionForce
Declaration
public Vector2 reactionForce { get; }
Property Value
reactionTorque
Declaration
public float reactionTorque { get; }
Property Value
Methods
GetReactionForce(Single)
Declaration
public Vector2 GetReactionForce(float timeStep)
Parameters
Type |
Name |
Description |
Single |
timeStep |
|
Returns
GetReactionTorque(Single)
Declaration
public float GetReactionTorque(float timeStep)
Parameters
Type |
Name |
Description |
Single |
timeStep |
|
Returns
Extension Methods