기술 자료

Unity Engine

Unity Engine

direction

The rotation direction where X = cos(angle) and Y = sin(angle). This should always be normalized otherwise warnings will be produced when used, however this is not enforced. See PhysicsRotate.isNormalized and PhysicsRotate.Normalized.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

public Vector2 direction

Remarks

This is exposed directly as a field rather than a property as it is extremely unlikely to ever change and causes usability issues as a property.