Version: 2022.1
언어: 한국어

ContactFilter2D.IsFilteringNormalAngle

매뉴얼로 전환
public bool IsFilteringNormalAngle (Vector2 normal);

파라미터

normal The normal used to calculate an angle.

반환

bool Returns true when normal is excluded by the filter and false if otherwise.

설명

Checks if the angle of normal is within the normal angle range to be filtered.

Filtering is defined as including or excluding objects based upon a specific condition. Normal angle filtering checks an angle and includes it when it is within the normal angle range and excludes it if otherwise. IsFilteringNormalAngle returns true when useNormalAngle is set to true and the angle is outside the normal angle range defined by minNormalAngle and maxNormalAngle. This indicates the angle is filtered which means it should be excluded. IsFilteringNormalAngle returns false if otherwise. Note:: Setting useOutsideNormalAngle to true inverts the function behavior and it returns opposite results. See Also: useNormalAngle, ::ref:minNormalAngle & maxNormalAngle.


public bool IsFilteringNormalAngle (float angle);

파라미터

angle The angle used for comparison in the filter.

반환

bool Returns true when angle is excluded by the filter and false if otherwise.

설명

Checks if the angle is within the normal angle range to be filtered.

Filtering is defined as including or excluding objects based upon a specific condition. Normal angle filtering checks an angle and includes it when it is within the normal angle range and excludes it if otherwise. IsFilteringNormalAngle returns true when useNormalAngle is set to true and the angle is outside the normal angle range defined by minNormalAngle and maxNormalAngle. This indicates the angle is filtered which means it should be excluded. IsFilteringNormalAngle returns false if otherwise. Note:: Setting useOutsideNormalAngle to true inverts the function behavior and it returns opposite results. See Also: useNormalAngle, ::ref:minNormalAngle & maxNormalAngle.

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