Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


angle

The world angle (in degrees) along which the suspension will move.
Read time 1 minuteLast updated 5 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.Physics2DModule
public float angle { get; set; }

Remarks

This provides 2D constrained motion similar to a SliderJoint2D. This is typically how suspension works in the real world. Additional Resources: Rigidbody2D.