methusalah / SplineMesh

A Unity plugin to create curved content in real-time with bézier curves
https://twitter.com/dumas181
MIT License
1.05k stars 104 forks source link

fbx models always have wrong direction when they are tested on 3d max #16

Open virtouso opened 5 years ago

virtouso commented 5 years ago

hi. im trying to make rail system with your plugin. the problem is i used lots of different 3d rail models but all of them get stretched in wrong direction. i used your rail as reference in 3d max but it didnt work to. how can i fix this problem? 2019-02-07_13-32-22

methusalah commented 5 years ago

You just have to change the mesh rotation in the MeshBender here as shown in the example here

you can see a live example on this video

virtouso commented 5 years ago

thanks for your great answer. it looks the problem is solved bust still there is one problem. the rail is scaled in direction of curve. what is the best way to fix it? untitled

methusalah commented 5 years ago

It's a known issue that will be resolved in a future release. see #17 in the meantime, the only solution is to have a longer rail mesh (with more ties) and insure the curves are of the same length to avoid ties being stretched