Collision-detection using a simple uniform circle.
More...
Collision-detection using a simple uniform circle.
◆ CollisionTest() [1/2]
override bool FrameOfReference.World.Components.Circle.CollisionTest |
( |
Vector2 |
point, |
|
|
float |
rotation |
|
) |
| |
|
inline |
Determines whether a certain point lies within a circle.
- Parameters
-
point | The point to check for collision in entity space. |
rotation | This is ignored for circles. |
- Returns
true
if the point does collide with the circle, false
.
◆ CollisionTest() [2/2]
override bool FrameOfReference.World.Components.Circle.CollisionTest |
( |
Quadrangle |
area, |
|
|
float |
rotation |
|
) |
| |
|
inline |
Determines whether a certain area lies within a circle.
- Parameters
-
area | The area to check for collision in entity space. |
rotation | This is ignored for circles. |
- Returns
true
if area does collide with the circle, false
.
◆ Radius
float FrameOfReference.World.Components.Circle.Radius |
|
getset |
The radius of the circle.
The documentation for this class was generated from the following file:
- World/Components/Circle.cs