Свойство | Тип | Описание | |
---|---|---|---|
radius | float |
Метод | Описание | |
---|---|---|
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 |
Метод | Описание | |
---|---|---|
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 | |
Результат | bool |
public collidesWithShape ( |
||
other | ||
result | CollisionResult | |
Результат | bool |
public containsPoint ( Vector2 point ) : bool | ||
point | Vector2 | the point |
Результат | 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. |
Результат | bool |
public getPointAlongEdge ( float angle ) : Vector2 | ||
angle | float | an angle in radians |
Результат | Vector2 |
public pointCollidesWithShape ( Vector2 point, CollisionResult &result ) : bool | ||
point | Vector2 | |
result | CollisionResult | |
Результат | bool |