Neos-Metaverse / NeosPublic

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

Implement Internal Projection Functions as LogiX Nodes #3308

Open RyuviTheViali opened 3 years ago

RyuviTheViali commented 3 years ago

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

Currently, projecting points in space onto 3D lines, planes, and so on is a complicated process and usually requires knowledge of projection algorithms to do properly. As an example, I have been working on a building tool which requires line-plane intersection and point-to-line projection calculations. Both of these calculations are complicated to execute and build.

Relevant issues

No response

Describe the solution you'd like

Internal to Neos already (in C#) are a lot of convenient point projection and intersection calculation functions, used by Gizmos, and provided by BEPU V2. These functions wrapped into LogiX nodes would be very useful in a variety of situations and calculations. Specific functions that would be useful to be implemented would be plane-line intersection, point-to-line projection, point-to-line-segment projection, and point-to-sphere projection.

Describe alternatives you've considered

An alternative is to continue to use current LogiX nodes to construct these projection algorithms as is done currently.

Additional context

I am unsure how many projection functions exist in C# so far, but I feel a least a few of them would be very beneficial to the LogiX community at the very least.

TheBasementNerd commented 3 years ago

We already have point to line as the Project node, however I can think of a large number of applications for having these equations simplified into single nodes