Neos-Metaverse / NeosPublic

A public issue/wiki only repository for the NeosVR project
193 stars 9 forks source link

Min/Max Laser Grabbable Distance #3084

Open komdog opened 3 years ago

komdog commented 3 years ago

Is your feature request related to a problem? Please describe.

While working on a game during MMC 2021, I thought that game worlds would benefit greatly from being able to control the range at which something can be laser grabbed. This could really help the game designer keep control of the players ability to reach things from very far away.

Relevant issues

No response

Describe the solution you'd like

Something of this nature Just the ability to specify as radius in which laser grabbing would work. image

Describe alternatives you've considered

I've used Logix to account for this but it become tedious to copy that string of Logix on every object that I'd prefer to have this system on.

Additional context

No response

RobertBaruch commented 3 years ago

+1. I used some LogiX to drive AllowOnlyPhysicalGrab based on the distance to a user's hand. However, if you have hundreds or thousands of grabbable objects in the world, it seems that the user hand distance calculation would have to be performed on every object, every frame.

I'm not sure if adding MinDistance/MaxDistance would have the same impact or not. In any case, this would be very convenient to have.

Bonus points if, when the grabbable is laser-grabbed and the user lasers it farther away than MaxDistance, the grabbable is ungrabbed.