Documentation

Unity Engine


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 a month ago

Definition

public PhysicsRotate rotation { readonly get; set; }