Version: 2023.2
言語: 日本語
public Vector2 surfaceUp ;

説明

A reference direction used to calculate contact angles.

Both Rigidbody2D.SlideMovement.surfaceSlideAngle and Rigidbody2D.SlideMovement.gravitySlipAngle use this to determine the surface angle.

NOTE: By default, this value is Vector2.up. The magnitude of this vector is unimportant however an exception will be thrown in the magnitude is zero.

Additional resources: Rigidbody2D.Slide and SlideResults.