Property | Type | Description | |
---|---|---|---|
Position | Vector2 | ||
Size | Vector2 | ||
Tags | List |
Method | Description | |
---|---|---|
CheckCollision ( |
BBOX collision test with colliders.
|
|
CheckCollision ( float x, float y, float w, float h ) : bool | ||
CheckCollision ( int x, int y ) : bool |
Check collision with a point.
|
|
Collider ( Vector2 startingPos, Vector2 size, List |
Collider object to test collisions
|
public CheckCollision ( |
||
other | ||
return | bool |
public CheckCollision ( float x, float y, float w, float h ) : bool | ||
x | float | |
y | float | |
w | float | |
h | float | |
return | bool |
public CheckCollision ( int x, int y ) : bool | ||
x | int | |
y | int | |
return | bool |
public Collider ( Vector2 startingPos, Vector2 size, List |
||
startingPos | Vector2 | inital (top left) position of hitbox. |
size | Vector2 | the size of the hitbox |
tags | List |
tags of entities who should be interacted with. make null for all |
return | System.Collections.Generic |