Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect Collision #2

Open
jee1mr opened this issue Dec 8, 2020 · 0 comments
Open

Detect Collision #2

jee1mr opened this issue Dec 8, 2020 · 0 comments

Comments

@jee1mr
Copy link
Contributor

jee1mr commented Dec 8, 2020

One of the approaces:

Point of Intersection Formula
(x,y) = [ ((b1c2) - (b2c1) ) / (a1b2 - a2b1), ((a2c1) - (a1c2) / (a1b2) - (a2b1))

Ray
Point of Origin: 0, 0
Angle of Inception: angle
Second Point: (origin.x + Math.cos(angle) * length, origin.y + Math.sin(angle) * length)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant