InertiaTranslationBehavior2D.DesiredDisplacement 속성

정의

속도 벡터를 따라 개체가 이동해야 하는 절대 거리(좌표 단위)를 가져오거나 설정합니다.

public:
 property float DesiredDisplacement { float get(); void set(float value); };
public float DesiredDisplacement { get; set; }
member this.DesiredDisplacement : single with get, set
Public Property DesiredDisplacement As Single

속성 값

Single

속도 벡터를 따라 개체가 이동해야 하는 절대 거리(좌표 단위)입니다.

설명

이 속성 값과 함께를 DesiredDeceleration 속성;이 속성은 설정 하는 설정 DesiredDecelerationNaN입니다. 이 두 속성에 대 한 기본 값 및 DesiredDeceleration 속성은 NaN합니다. 하나 또는 관성 프로세서를 시작 하기 전에 다른 속성을 설정 해야 합니다.

DesiredDisplacement 유한 하 고 음수가 아닌 숫자 여야 합니다. 치환 방향은 함께 합니다 InitialVelocityXInitialVelocityY 벡터입니다.

관성 프로세서는 실행 하는 동안이 속성을 설정할 수 없습니다. 그렇지 않으면 예외가 throw 됩니다.

적용 대상