Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Raycasting

Matěj Štágl edited this page Feb 11, 2019 · 9 revisions

Often there is a need to check for collisions between objects in events such as step or draw. For that, functions below were designed. They allow to check whether two shapes overlap and if so, to obtain exact points of contact. Often, multiple variants of a specific function exist providing various levels of detail. To achieve a good performance it is wise to use only as detailed variant as needed. For example, in case you'd like to know whether two rectangles overlap, is is not necessary to call rectangle_in_rectangle_all which returns a List<Vector2> of colliding points but takes quite a few CPU cycles to compute.

Intersection Functions

Back to Manual

Clone this wiki locally

AltStyle によって変換されたページ (->オリジナル) /