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

allow passing shape resource to RayCast2D and RayCast3D #709

Closed
Shadowblitz16 opened this issue Apr 14, 2020 · 4 comments
Closed

allow passing shape resource to RayCast2D and RayCast3D #709

Shadowblitz16 opened this issue Apr 14, 2020 · 4 comments

Comments

@Shadowblitz16
Copy link

Describe the project you are working on:
spaceship game

Describe the problem or limitation you are having in your project:
I'm trying to make a beam weapon that stops when it hits a object
currently I am using two RayCast2D's but these things are 1 dimensional so they don't cover the whole width of my beam.
this allows things to pass through in the gaps between the raycasts

Describe the feature / enhancement and how it helps to overcome the problem or limitation:
basicly RayCast2D and RayCast3D nodes would allow passing a shape resource.
this would change the ray from a 1 dimensional ray to a 2 or 3 dimensional ray

Describe how your proposal will work, with code, pseudocode, mockups, and/or diagrams:
image

If this enhancement will not be used often, can it be worked around with a few lines of script?:
idk how often this would be used but I would assume or something like what I want it for it would be used alot.

also I don't think it can be actually done or at least not in a easy way.

Is there a reason why this should be core and not an add-on in the asset library?:
other game engines like unity has it

@bojidar-bg
Copy link

Duplicate of #72?

@Xrayez
Copy link
Contributor

Xrayez commented Apr 14, 2020

Duplicate of #72?

Mostly yes, see my proposed implementation at #72 (comment).

#72 can benefit from renaming, but this proposal has a diagram at least. 🙂

@Xrayez
Copy link
Contributor

Xrayez commented Apr 14, 2020

I have created my own proposal regarding this, because I have some specific implementation details which might be worth discussing separately: #710.


Meta: Note that different proposals can be deemed as individual use cases (but some proposals are actually requests?).

@Calinou
Copy link
Member

Calinou commented Apr 15, 2020

Duplicate of #72 and #710.

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

No branches or pull requests

4 participants