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 helps immensely. Thank you.
Available for freelance work—feel free to reach out.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Mesh Generation between two splines vatan 4 189 02-14-2025, 07:11 AM
Last Post: vatan
  Disable a spline's gizmo when not selected or disabled. mikechr2000 1 97 02-03-2025, 09:34 AM
Last Post: _Aka_
  Create Mesh Node, Make Static Options rickgplus 1 123 01-23-2025, 10:12 AM
Last Post: _Aka_
Information Questions regarding spline colliders and collisions with rigidbodies Spyboticer 7 354 01-20-2025, 12:25 PM
Last Post: _Aka_

Forum Jump: