Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Trigger Zones along Spline Mesh
#1
Hi! I'm wondering if there's a way to automatically create a Trigger zone around or along a spline. I'm imagining generating a Mesh extrusion and using the Mesh Collider from that. But since the mesh would be concave, you can't set it to IsTrigger to true. 

I think that using primitive colliders along the mesh would be good enough to simulate it, but I'd like a way to auto-generate that.

Thanks!
Reply
#2
Hi

It depends on what makes your mesh concave:
  • If it is because the Cross shape is, then generate another mesh with a convex cross shape (a rectangle for example).
  • If it is because your Path spline has turns, then this might help:
    • In Shape Extrusion, Set Optimize to True, and reduce the Resolution/Angle Threshold until you have a minimal but acceptable mesh
    • In Volume Mesh, Set Splt at true, and Split Length to something really small. Since splitting always happens at existing vertices, such small Split Length value will basically mean that each part will be defined by two consecutive groups of vertices. Basically, the part will have no turns in it, and will be thus convex.

I hope this helped. Please let me know if it worked.
Have a nice day.
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to get length starting from one spline to connected nth spline Dragon-3623 1 1 05-14-2024, 04:52 PM
Last Post: _Aka_
  Incorrect mesh alignment after extrusion on curved path Thinkurvy 10 21 04-17-2024, 10:57 AM
Last Post: _Aka_
  Curvy Line Renderer for UI Spline? gekido 3 6 04-04-2024, 12:56 PM
Last Post: _Aka_
  Get position of all control points for a spline gekido 1 6 03-28-2024, 10:08 PM
Last Post: _Aka_

Forum Jump: