Property | Type | Description | |
---|---|---|---|
radius | float |
Method | Description | |
---|---|---|
Circle ( float radius ) : System | ||
collidesWithLine ( Vector2 start, Vector2 end, RaycastHit &hit ) : bool | ||
collidesWithShape ( |
||
containsPoint ( Vector2 point ) : bool |
Gets whether or not the provided point lie within the bounds of this Circle.
|
|
containsPoint ( float x, float y ) : bool |
Gets whether or not the provided coordinates lie within the bounds of this Circle.
|
|
getPointAlongEdge ( float angle ) : Vector2 |
Gets the point at the edge of this Circle from the provided angle
|
|
overlaps ( |
||
pointCollidesWithShape ( Vector2 point, CollisionResult &result ) : bool |
Method | Description | |
---|---|---|
recalculateBounds ( Collider collider ) : void | ||
recalculateBounds ( float radius, Vector2 position ) : void |
internal hack used by Particles so they can reuse a Circle for all collision checks
|
public collidesWithLine ( Vector2 start, Vector2 end, RaycastHit &hit ) : bool | ||
start | Vector2 | |
end | Vector2 | |
hit | RaycastHit | |
return | bool |
public collidesWithShape ( |
||
other | ||
result | CollisionResult | |
return | bool |
public containsPoint ( Vector2 point ) : bool | ||
point | Vector2 | the point |
return | bool |
public containsPoint ( float x, float y ) : bool | ||
x | float | The x coordinate of the point to check for containment. |
y | float | The y coordinate of the point to check for containment. |
return | bool |
public getPointAlongEdge ( float angle ) : Vector2 | ||
angle | float | an angle in radians |
return | Vector2 |
public pointCollidesWithShape ( Vector2 point, CollisionResult &result ) : bool | ||
point | Vector2 | |
result | CollisionResult | |
return | bool |