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

SplineExtruder should allow for removal of collider #53

Open MichaelMacha opened 2 years ago

MichaelMacha commented 2 years ago

I'm currently working on a project where a player can drag a wire between a voltage source and a potential sink for it, using Spline Mesh. It works great so far, except that in initial trials, the SplineExtruder I was using also added a mesh collider to the generated mesh, which I had to comment out in the code to turn off.

I'm hesitant to submit a fix until I fully understand how to use Spline Mesh, but this seems like it would be a great thing to make optional! Maybe with a boolean check box? I really don't need to worry about collisions with it.

methusalah commented 2 years ago

Indeed there is a "generate collider" option in the SplineMeshTiling component, but it is missing in the SplineExtrusion and could be added