Version: 2017.3

Rigidbody.freezeRotation

Cambiar al Manual
public bool freezeRotation ;

Descripción

Controla si la física cambiará la rotación del objeto.

If freezeRotation is enabled, the rotation is not modified by the physics simulation. This is useful for creating first person shooters, because the player needs full control of the rotation using the mouse. See Also: Rigidbody.constraints.