Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to rotate generator asteroids
#5
Hi,
Here is some information that I believe will help you:
  1. A Curvy Generator (CG) generates objects each time you enter/exit playmode, and each time you modify a setting of the CG or its modules. Each time a CG generates objects, it replaces the existing objects.
  2. Generating objects every frame lead to memory allocation, which ultimately leads to garbage collection. A lot of effort was put into Curvy Splines to reduce this per-frame memory allocation, but it is not yet zero. Use the profiler and test on device to see if this memory allocation is problematic for your use case.
  3. There was an easier solution than the one I gave in my previous responses, I feel dumb to not have talked about it: just rotate the spline. For this to work, make sure your spline input module uses the splines's world coordinates.
  4. Once a CG generates objects, if you want to keep them and modify them (for example to add to them Spline Controllers), it is best to export the generated objects outside the CG, and then disable the CG. Otherwise, all your modifications will be discardes at the next CG update. To export those objects, the easiest way is to use the CG toolbar, which has a button to save all the CG resources/generated objects.
  5. A spline controller defines the position/rotation of its game object. It will override any existing position/rotation you applied or try to apply to it.

So to summarize, either you generate the objects each frame by rotating the spline (quick to implement but consumes more resources), or you generate them once and add to them properly parametrized spline controllers (longer to implement, but resource efficient). Another solution that needs more coding is to write code that both instantiates the asteroids and moves them using Curvy Spline's API. To be able to properly guide you, I need to know if you can code or not.
Please consider leaving a review for Curvy Splines, this helps immensely. Thank you.
Reply


Messages In This Thread
How to rotate generator asteroids - by patndan74 - 04-25-2025, 07:36 PM
RE: How to rotate generator asteroids - by _Aka_ - 04-26-2025, 07:12 PM
RE: How to rotate generator asteroids - by _Aka_ - 04-27-2025, 09:03 AM
RE: How to rotate generator asteroids - by _Aka_ - 05-01-2025, 07:02 PM
RE: How to rotate generator asteroids - by _Aka_ - 05-08-2025, 10:07 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  I have to refresh generator manualy :( GameDeveloperek4123 4 3,297 10-07-2024, 05:36 PM
Last Post: _Aka_
  Bug: Save Generator Outputs still saves outputs if object is disabled curvymesher 1 2,008 08-30-2024, 09:19 AM
Last Post: _Aka_
  How can I set the generator to stop updating? emerrryjones 1 1,759 07-26-2024, 10:07 AM
Last Post: _Aka_
  8.8.0 is live, and it improves Curvy Generator greatly _Aka_ 1 1,707 04-03-2024, 03:16 PM
Last Post: _Aka_

Forum Jump: