Skip to content

Triangle2D #55

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

Merged
merged 2 commits into from
Mar 8, 2022
Merged

Triangle2D #55

merged 2 commits into from
Mar 8, 2022

Conversation

wbm1113
Copy link
Contributor

@wbm1113 wbm1113 commented Mar 7, 2022

What?

Triangle2D class with extensions for Vector2 that it relies on (to rotate a 2D vector about an arbitrary origin)

Why?

Checking 2D triangle collision in Unity typically requires a polygon collider. For example, if you want to detect an object with an entity's field of view. This is performance inefficient. Using this class lets you run that kind of collision detection without actually using any colliders.

How?

Basic arithmetic

@unitycoder unitycoder merged commit 75e47ac into UnityCommunity:master Mar 8, 2022
@unitycoder
Copy link
Member

thanks!

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

Successfully merging this pull request may close these issues.

2 participants