Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Magical Box particles along spline
#11
(08-20-2013, 08:44 AM)Jake Wrote: Hi,

I've exported you my test scene. I used the dev version of Curvy, so propably CurvySpline and CurvySplineSegment scripts are missing when you import that. In this case just drag the CurvySpline script to TubeA/B/C objects and CurvySplineSegment to all CP objects. Alternatively, just delete all tubes, recreate them with your Curvy version and reassign them in the Simple Tube parameter.

Here's the tutorial.

You see, custom parameters aren't rocket science.

Jake

This is pretty amazing, I didn't know MagicBox can be modified this way, will definitely look into this more during the next few days. Big Grin

I ran into just one problem while trying to use this on my scene, and it's the following. I use a simple rotation script which makes the ship tilt to one side, then back (simulation of a ballast system), however, the particles don't seem to follow the curvy spline as it rotates together with the object. It worked fine when I was using the Position by Curvy Spline default parameter included with MagicBox, but with this Custom one, I guess it does not recalculate the path as the spline moves.
Any simple fix for this or?
Reply
#12
(08-20-2013, 07:46 PM)lukasspro777 Wrote: This is pretty amazing, I didn't know MagicBox can be modified this way, will definitely look into this more during the next few days. Big Grin
Magical Box was designed from the ground up to be as modular and extendable as possible. And of course you can roll your own custom emitters as easy as parameters.

Quote:I ran into just one problem while trying to use this on my scene, and it's the following. I use a simple rotation script which makes the ship tilt to one side, then back (simulation of a ballast system), however, the particles don't seem to follow the curvy spline as it rotates together with the object. It worked fine when I was using the Position by Curvy Spline default parameter included with MagicBox, but with this Custom one, I guess it does not recalculate the path as the spline moves.
Any simple fix for this or?
This was intentional because it's the fastest method. Curvy itself interpolates world coordinates, Magical Box uses ParticleSpace coordinates (i.e. the local space of the MBParticleSystem object). So you'll just have to use default TransformPoint/InverseTransformPoint to translate coordinates...OR you replace PT.Position with PT.WorldPosition, that will do exactly the same Big Grin

Jake
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Rotation of Curvy Spline Segment jh092 0 1 1 hour ago
Last Post: jh092
  How to create exactly N gameobjects at spline? ThomasTheTank 1 42 05-24-2020, 01:56 PM
Last Post: _Aka_
  Connection survives spline duplication rmrmrm 7 216 05-22-2020, 01:28 PM
Last Post: _Aka_
  Simple Spline Extrusion GelsonBieber 1 100 05-08-2020, 01:47 PM
Last Post: _Aka_

Forum Jump: