Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tunnel Colliders and Looping Meshes
#1
Greetings!

I recently started using Curvy Splines and I encountered two issues:

1. I created a looping spline and in the generator I set up multiple meshes that get deformed based on the Range values in the Input Spline Path. When placing the range from a specific control point to the last one, the mesh generator ignores that last control point and doesn't generate the mesh, instead it stops at the previous point as if the spline isn't looping. 

2. When creating a deformed tunnel using the splines that has a generated mesh collider, objects thrown while inside the tunnel act weirdly, as if the entire tunnel is a solid box collider.


I assume I'm doing something wrong so I'd love some input if possible!

Thanks
Reply
#2
Hi
1- I believe this issue is avoided by using the Range setting in the Rasterize Path module instead of the Range setting in the Input Spline Path module.
2- You should set the Convex setting to false in the Crate Mesh module.
Did this help?
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
#3
That does help, thanks! I have another potential issue - I'm making an ore mine so I have a main spline that has tracks as the main mesh and a tunnel mesh around them. Now if I create junction points (track or caves) that split off from the main spline, the tunnel should not spawn at those connection points and create a gap so the connection spline can be integrated into the main spline properly. I tried using ranges but it seems difficult to set things up so it works without it being annoying in some way. 

I assume I can create a script that can run after the mesh updates that detects intersecting objects and removes them but is there maybe a way the generator can detect connection points and not spawn the mesh there?
Reply
#4
I assume you are using the Volume Spots module, in which case you can use the Space Before setting to force an empty space before starting to create objects.
https://curvyeditor.com/documentation/ge...ace_before
I hope this helped.
If and when you feel like it, please leave a review for the asset, that helps a lot. 
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
#5
Here is an example of two splines/tunnels connecting, you can see how the tunnels intersect into one another: 
   

Here's when I use the space before and after setting, as you can see it creates spaces between all tunnel walls which isn't needed:
   

I created a script that detects if the walls are intersecting with another spline and it automatically removes them, leaving gaps that I can easily fill in so that's not a problem:
   


I made this script in 10 minutes and it does require some manual setup to work but it does a decent job so it would be very nice if the generator itself had a similar option to skip placing the mesh if another spline is in the way.
Reply
#6
Thank you for for the details. I added your suggestion to the features suggestion list.
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
  Disable rebuild of meshes in dynamic mode Zilk1 3 13 05-27-2024, 08:14 AM
Last Post: _Aka_
  Cant Generate Meshes At Runtime alms94 5 24 01-26-2024, 11:27 AM
Last Post: _Aka_
  Combining two separate meshes ava_ava 2 9 07-26-2023, 05:49 AM
Last Post: ava_ava
  Invisible generated meshes in build itsGama 5 10 06-08-2023, 11:53 AM
Last Post: _Aka_

Forum Jump: