Class Collider2DExtensions
Inheritance
object
Collider2DExtensions
Namespace: TetraCreations.Core
Assembly: cs.temp.dll.dll
Syntax
public static class Collider2DExtensions
Methods
ParentColliding(Collider2D, GameObject)
Determines if the 2d collider set has a trigger is detecting it's parent
Declaration
public static bool ParentColliding(this Collider2D collider, GameObject gameObject)
Parameters
Type | Name | Description |
---|---|---|
Collider2D | collider | |
GameObject | gameObject |
Returns
Type | Description |
---|---|
bool |
SelfOrParentColliding(Collider2D, GameObject)
Determines if the 2d collider set has a trigger is detecting itself or it's parent
Declaration
public static bool SelfOrParentColliding(this Collider2D collider, GameObject gameObject)
Parameters
Type | Name | Description |
---|---|---|
Collider2D | collider | |
GameObject | gameObject |
Returns
Type | Description |
---|---|
bool |