Version: 2023.1
언어: 한국어
public RaycastHit2D slideHit ;

설명

The specific contact found when a slide movement is performed with Rigidbody2D.Slide.

When a slide along a surface occurs, the slide may hit a surface tangent to the movement. This RaycastHit2D represents that contact.

It is possible that movement along a surface occurs without any contact to a surface. In this case, the RaycastHit2D will be invalid.

NOTE: This contact does not represent the surface itself that the movement is tangent to. That is represented by Rigidbody2D.SlideResults.surfaceHit.

See Also: Rigidbody2D.SlideResults.surfaceHit, Rigidbody2D.Slide and SlideMovement.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961