Skip to content

Bouncing Lasers limitations and bug #10

@BenjaminOrenstein

Description

@BenjaminOrenstein

As is, we have to choose between Lasers bouncing off of objects and ignoring objects. What if I want for lasers to bounce off of mirrors and collide with walls? As is, it seems like that's not possible.

I had assumed that this limitation was as intended, however this creates another issue:

Imagine this scene:

[Mirror] [Block] <=[Laser]

Mirror is part of the group "reflects" which Lasers bounce off of. The Laser sees that it doesn't bounce off the block. The displayed ray, however, renders it's full length and does not collide with the mirror/wall.

See attached images. One of them shows what happens when the laser collides with something in a bounce group, one shows what happens when it does not.

Reflects No-Reflect

I've made some progress on a fix for myself, but I've gotten a little lost in your code trying to figure out the logic for adding points to the line. Would love to see an update that fixes this, but I will continue working on it on my end and post an update if I find a full fix.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions