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
  Curvy Line Renderer for UI Spline? gekido 5 12 10-29-2024, 10:19 AM
Last Post: _Aka_
  Mesh deform - baby guide jmh1804 7 11 08-22-2024, 07:18 AM
Last Post: _Aka_
  Nested Spline Volume Spot Instantiation merobbins5 3 7 07-26-2024, 09:58 AM
Last Post: _Aka_
  Left-right movement, and spline follow shihaya 3 10 07-12-2024, 12:50 PM
Last Post: _Aka_

Forum Jump: