Posts: 12
Threads: 9
Joined: Aug 2024
Trying to spawn a mesh/ game object at the beginning and end of splines. I am trying to use rasterize path, volume spots, but not as straightforward as i had hope. Is this the right method? or is there a better way to do something like this?
Posts: 2,160
Threads: 95
Joined: Jun 2017
Hi
The path you are following is good for complexe tasks, but for simple ones, I would simply generate an object with a Spline Controller, and set its position (in relative mode) to 0 (for start of spline) or 1 (for end of spline).
You can also do it simply using code. Let me know if this interests you.
Did this help?
Have a nice day.
Posts: 12
Threads: 9
Joined: Aug 2024
Thanks. For my use case i am adding a "post" to the start and end of a wall I am creating with generator. Is using the spline controller still the correct method?
Once the geometry is in place, it will remain a static object, and there is no need for curvy components. Is it possible do something similar inside of the generator?
Posts: 2,160
Threads: 95
Joined: Jun 2017
03-21-2025, 12:31 PM
(This post was last modified: 03-21-2025, 12:31 PM by _Aka_.)
I don't see an issue with using spline controllers, even if the objects aren't meant to move, because it's a quick way to place them. If, for some reason, you prefer not to use the spline controller, you can use the Curvy Generator to place the objects.
Posts: 2,160
Threads: 95
Joined: Jun 2017
To do that use the Input Transform Spots module to define a Spot's position as being the same as an existing transform (In your case, the transform of the first control point and the last control point of the spline). Then use these Spots to create game objects at the desired place. using the Create GameObject module.