|
Post by DarkTonic Dev on Mar 11, 2022 4:49:16 GMT
Splines, are pretty difficult. I investigated a little and didn't add it to roadmap. Basically I'd need to make a spline editor in Scene view I believe.
For 2D things this works fine. You may need to make multiple smaller 2d-ish shoreline colliders for different areas.
Could you not make a much simpler (few polygons) mesh collider? I know very little about this sort of thing.
|
|
nathanj
Junior Member
Posts: 66
Posts: 66
|
Post by nathanj on Mar 11, 2022 4:58:10 GMT
|
|
|
Post by DarkTonic Dev on Mar 11, 2022 15:31:26 GMT
That's cool. That's apparently only half the battle though. The reason we can use colliders is because there's a method that finds the closest point on a collider that I can call. If they add that for a spline, then we're in business.
|
|
nathanj
Junior Member
Posts: 66
Posts: 66
|
Post by nathanj on Mar 11, 2022 20:55:59 GMT
OK, so if I can find a spline asset that allows you to find the closest point it should be pretty easy to make a custom script for this?
Thank you, Nathan
|
|
|
Post by DarkTonic Dev on Mar 12, 2022 0:28:37 GMT
OK, so if I can find a spline asset that allows you to find the closest point it should be pretty easy to make a custom script for this? Thank you, Nathan Possibly, but that would require the custom asset. So unless it's insanely popular already, it's unlikely we'd add integration with it ourselves. If the author of said asset wants to write the integration ourselves, that would help. -Brian
|
|
nathanj
Junior Member
Posts: 66
Posts: 66
|
Post by nathanj on Mar 12, 2022 2:12:54 GMT
I get that it wouldn’t make sense to support a 3rd party asset for many reasons. Just thinking about writing my own.
If I find a solution I’ll let you know. Thanks for explaining exactly what I need to do.
Nathan
|
|
|
Post by DarkTonic Dev on Mar 12, 2022 3:19:45 GMT
No problem.
|
|