Green Rock Engine 0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
GREngine.Core.Physics2D.ICollisionSystem Interface Reference
Inheritance diagram for GREngine.Core.Physics2D.ICollisionSystem:
Inheritance graph
[legend]

Public Member Functions

bool AABBOverlap (AABB a, AABB b)
 
AABB GetCombinedAABBRegion (AABB a, AABB b)
 
AABB GetAABBOverlapRegion (AABB a, AABB b)
 
bool PointIsInAABB (PointF p, AABB aabb)
 
bool LinesSegmentsOverlap (PointF a1, PointF a2, PointF b1, PointF b2)
 
bool LinesCanIntersect (Line l1, Line l2)
 
PointF LineIntersectionPoint (Line l1, Line l2)
 
List< PointF > LineIntersectsCircle (PointF p1, PointF p2, PointF c, float r)
 
bool IntersectionIsWithinLineSegments (PointF intersection, PointF a1, PointF a2, PointF b1, PointF b2)
 
void AddCollisionObject (Collider obj)
 
void RemoveCollisionObject (Collider obj)
 
HashSet< ColliderGetColliderObjects ()
 
bool PointIsCollidingWithLayer (PointF point, string layer)
 
List< ColliderGetCollidersOfLayer (string layer)
 
Raycast2DResult Raycast2D (PointF origin, Vector2 direction, float distance, List< string > layers)
 

Member Function Documentation

◆ AABBOverlap()

bool GREngine.Core.Physics2D.ICollisionSystem.AABBOverlap ( AABB  a,
AABB  b 
)

◆ GetAABBOverlapRegion()

AABB GREngine.Core.Physics2D.ICollisionSystem.GetAABBOverlapRegion ( AABB  a,
AABB  b 
)

◆ GetCombinedAABBRegion()

AABB GREngine.Core.Physics2D.ICollisionSystem.GetCombinedAABBRegion ( AABB  a,
AABB  b 
)

◆ IntersectionIsWithinLineSegments()

bool GREngine.Core.Physics2D.ICollisionSystem.IntersectionIsWithinLineSegments ( PointF  intersection,
PointF  a1,
PointF  a2,
PointF  b1,
PointF  b2 
)

◆ LineIntersectionPoint()

PointF GREngine.Core.Physics2D.ICollisionSystem.LineIntersectionPoint ( Line  l1,
Line  l2 
)

◆ LinesCanIntersect()

bool GREngine.Core.Physics2D.ICollisionSystem.LinesCanIntersect ( Line  l1,
Line  l2 
)

◆ LinesSegmentsOverlap()

bool GREngine.Core.Physics2D.ICollisionSystem.LinesSegmentsOverlap ( PointF  a1,
PointF  a2,
PointF  b1,
PointF  b2 
)

◆ Raycast2D()

Raycast2DResult GREngine.Core.Physics2D.ICollisionSystem.Raycast2D ( PointF  origin,
Vector2  direction,
float  distance,
List< string >  layers 
)

The documentation for this interface was generated from the following file: