Struct ContactFilter2D
Assembly: UnityEngine.dll
[Serializable]
public struct ContactFilter2D
Fields
|
Improve this Doc
View Source
Declaration
public LayerMask layerMask
Field Value
|
Improve this Doc
View Source
Declaration
Field Value
|
Improve this Doc
View Source
Declaration
public float maxNormalAngle
Field Value
|
Improve this Doc
View Source
Declaration
Field Value
|
Improve this Doc
View Source
Declaration
public float minNormalAngle
Field Value
|
Improve this Doc
View Source
Declaration
public const float NormalAngleUpperLimit = 359.9999F
Field Value
|
Improve this Doc
View Source
Declaration
Field Value
|
Improve this Doc
View Source
Declaration
Field Value
|
Improve this Doc
View Source
Declaration
public bool useNormalAngle
Field Value
|
Improve this Doc
View Source
Declaration
public bool useOutsideDepth
Field Value
|
Improve this Doc
View Source
Declaration
public bool useOutsideNormalAngle
Field Value
|
Improve this Doc
View Source
Declaration
Field Value
Properties
|
Improve this Doc
View Source
Declaration
public bool isFiltering { get; }
Property Value
Methods
|
Improve this Doc
View Source
Declaration
|
Improve this Doc
View Source
Declaration
public void ClearLayerMask()
|
Improve this Doc
View Source
Declaration
public void ClearNormalAngle()
|
Improve this Doc
View Source
Declaration
public bool IsFilteringDepth(GameObject obj)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public bool IsFilteringLayerMask(GameObject obj)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public bool IsFilteringNormalAngle(float angle)
Parameters
Type |
Name |
Description |
Single |
angle |
|
Returns
|
Improve this Doc
View Source
Declaration
public bool IsFilteringNormalAngle(Vector2 normal)
Parameters
Type |
Name |
Description |
Vector2 |
normal |
|
Returns
|
Improve this Doc
View Source
Declaration
public bool IsFilteringTrigger(Collider2D collider)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public ContactFilter2D NoFilter()
Returns
|
Improve this Doc
View Source
Declaration
public void SetDepth(float minDepth, float maxDepth)
Parameters
|
Improve this Doc
View Source
Declaration
public void SetLayerMask(LayerMask layerMask)
Parameters
|
Improve this Doc
View Source
Declaration
public void SetNormalAngle(float minNormalAngle, float maxNormalAngle)
Parameters
Type |
Name |
Description |
Single |
minNormalAngle |
|
Single |
maxNormalAngle |
|
Extension Methods