freezy / VisualPinball.Engine

:video_game: Visual Pinball Engine for Unity
https://docs.visualpinball.org
GNU General Public License v3.0
398 stars 62 forks source link

Rubbers meshGen fix and Gizmo positioning fix for rubbers and MWG #384

Closed Cupiii closed 2 years ago

Cupiii commented 2 years ago

Fixes Issue "Rubbers do not colllide sometimes #377".

Wrote Rubbers from scratch (copied some code from MWG).

Also fixed UV Mapping

freezy commented 2 years ago

Cool! Is this something that could go back to VPX?

Cupiii commented 2 years ago

Have to look at it tomorrow.

Cupiii commented 2 years ago

_middlepoint is set again for rubbers and MWG (where it was also not working). Changed PR Topic accordingly.

Test run fine on my computer.

Cupiii commented 2 years ago

Oh, and yes, that may be backported to VP as well, but check for MWG branch, where I edited something in SplineVertex class. I think I only made the 2d spline non loopable, but i may have altered more without knowing. I should have used the 3dSpline Class which was used for Ramps... but did not...