C# Class UnityEngine.Collider2D

Inheritance: Behaviour
Mostra file Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Private Properties

Property Type Description
Cast int
Cast int
INTERNAL_CALL_Cast int
INTERNAL_CALL_OverlapPoint bool
INTERNAL_CALL_Raycast int
INTERNAL_get_bounds void
INTERNAL_get_offset void
INTERNAL_set_offset void
IsTouching bool
IsTouchingLayers bool
IsTouchingLayers bool
Raycast int
Raycast int
Raycast int
Raycast int

Public Methods

Method Description
Cast ( Vector2 direction, RaycastHit2D results, [ distance, [ ignoreSiblingColliders ) : int
OverlapPoint ( Vector2 point ) : bool

Check if a collider overlaps a point in space.

Raycast ( Vector2 direction, RaycastHit2D results, [ distance, [ layerMask, [ minDepth, [ maxDepth ) : int

Casts a ray into the scene starting at the collider position ignoring the collider itself.

Private Methods

Method Description
Cast ( Vector2 direction, RaycastHit2D results ) : int
Cast ( Vector2 direction, RaycastHit2D results, float distance ) : int
INTERNAL_CALL_Cast ( Collider2D self, Vector2 &direction, RaycastHit2D results, float distance, bool ignoreSiblingColliders ) : int
INTERNAL_CALL_OverlapPoint ( Collider2D self, Vector2 &point ) : bool
INTERNAL_CALL_Raycast ( Collider2D self, Vector2 &direction, RaycastHit2D results, float distance, int layerMask, float minDepth, float maxDepth ) : int
INTERNAL_get_bounds ( Bounds &value ) : void
INTERNAL_get_offset ( Vector2 &value ) : void
INTERNAL_set_offset ( Vector2 &value ) : void
IsTouching ( Collider2D collider ) : bool
IsTouchingLayers ( ) : bool
IsTouchingLayers ( [ layerMask ) : bool
Raycast ( Vector2 direction, RaycastHit2D results ) : int
Raycast ( Vector2 direction, RaycastHit2D results, float distance ) : int
Raycast ( Vector2 direction, RaycastHit2D results, float distance, int layerMask ) : int
Raycast ( Vector2 direction, RaycastHit2D results, float distance, int layerMask, float minDepth ) : int

Method Details

Cast() public method

public Cast ( Vector2 direction, RaycastHit2D results, [ distance, [ ignoreSiblingColliders ) : int
direction Vector2
results RaycastHit2D
distance [
ignoreSiblingColliders [
return int

OverlapPoint() public method

Check if a collider overlaps a point in space.

public OverlapPoint ( Vector2 point ) : bool
point Vector2 A point in world space.
return bool

Raycast() public method

Casts a ray into the scene starting at the collider position ignoring the collider itself.

public Raycast ( Vector2 direction, RaycastHit2D results, [ distance, [ layerMask, [ minDepth, [ maxDepth ) : int
direction Vector2 Vector representing the direction of the ray.
results RaycastHit2D Array to receive results.
distance [ Maximum distance over which to cast the ray.
layerMask [ Filter to check objects only on specific layers.
minDepth [ Only include objects with a Z coordinate (depth) greater than this value.
maxDepth [ Only include objects with a Z coordinate (depth) less than this value.
return int