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

Rectangle - with position, orientation and size that can be intersected with Ray and other Shapes. #889

Open
Maksims opened this issue Mar 27, 2017 · 2 comments
Labels
feature good first issue Good for newcomers

Comments

@Maksims
Copy link
Collaborator

Maksims commented Mar 27, 2017

Like with BoundingBox and few other shapes, it would be good to have a rectangle, that is much simpler shape than box, and would be useful in many cases.

It would have position, rotation and size (not halfExtents please).
And would have functionality to check if it intersects with ray or other shapes.

@Maksims Maksims added feature good first issue Good for newcomers labels Mar 27, 2017
@leecommamichael
Copy link

Is this as straightforward as adding 'rectangle.js' in 'engine/src/shape' following the practices in the shapes in that directory? For clarification; you're asking for a rectangle, not a rectangular prism, yeah?

@guycalledfrank
Copy link
Collaborator

guycalledfrank commented Aug 15, 2017

I'd also add a circle.

(not halfExtents please).

That would make it harder to switch between rect/existing aabb. I would keep the halfExtents approach (or change both).

@yak32 yak32 assigned yak32 and unassigned yak32 Apr 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

4 participants