Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


rotation

The initial rotation of the body, in world-space. Bodies should be created with the desired rotation as creating bodies at the origin and then rotating them nearly doubles the cost of body creation, especially if the body is moved after shapes have been added.
Read time 1 minuteLast updated 12 days ago

Definition

public PhysicsRotate rotation { readonly get; set; }