Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to spawn GameObjects on corners of the liinear spline?
#1
I am trying to generate building walls using Prefabs.
The building spline is linear and nodes are placed on grid so they can form a polygon with regular walls (90 degrees turns). I am trying to fill it with groups of GO. 
1. How to set up Generator to spawn Prefabs exactly on corners of the linear spline?
2. Or how to find spots on corners?
3. How Curvy calculates a width of the prefab when spawning along the spline? It looks like the pivot of the GameObect is not so important.
4. Can I set the width of a prefab manually somehow? Just to convine the Generator that prefab has 0 (zero) or other specific width?

Sorry for so many questions but I am digging just to check if I can generate houses with Curvy Wink

Piotr
Reply
#2
Sorry I haven't answered you today. I will try to do so tomorrow.
Thanks for your patience, and 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
Don't worry. I understand that you are busy and really appreciate that you spent time helping us with sometimes even stupid questions Wink
Reply
#4

  1. If you place objects through the generator, you can only place them with defined spacing. You can't set a dynamic spacing such as "at each corner"
  2. In your case, using a linear spline, corners are always positioned were your control points (CP for short) are. So just put your prefabs at the same position as your CPs.
  3. The calculation is based on the bounding volume of the object's mesh (and if any its collider too)
  4. You can by modifying the code. But there is a simpler method: just modify the value of "Space before" or "Space after" (both can be negative)
    https://curvyeditor.com/documentation/ge...ct=1#group
Please let me know if you have any other questions
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
Thank you so much. I will be back after some testing.
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Best practice for mass-object instancing along 100km spline (railways) plus streaming bs@vectorvision.de 6 90 09-13-2019, 12:30 PM
Last Post: _Aka_
  How to properly set UV for extruded spline texture Pixel Flipper 3 60 09-05-2019, 11:55 AM
Last Post: _Aka_
  Steer Towards Spline whitecastleroad 3 76 09-04-2019, 01:39 PM
Last Post: _Aka_
  Basis Spline Wanderfalke 2 73 08-30-2019, 12:35 PM
Last Post: Wanderfalke

Forum Jump: