0 like 0 dislike
Is there a way to prevent a SamplerCurve or SamplerAnimTrack from rotating with the instance like how you can by disabling TransformRotate on Localspace evolvers? I'm creating an effect that has orbs rotating around the instance independent of the instance's rotation. So this means no matter how much the instance wobbles or spins around, the orbs won't follow along with that rotation. However the problem is the particle starting point from a SamplerCurve or SamplerAnimTrack does. It causes a visual bug where for one frame the particle will spawn at the starting point of either of the samplers before snapping back to where it was in the last frame, causing the trail effect the orbs have to freak out. Is there a way I can prevent either of these samplers from rotating around with the instance to stop visual bugs with trail effects on my orbs? Thanks.
by VileGoo (160 points)

1 Answer

0 like 0 dislike

Feel free to send us a .pkkg containing your effect so we can take a look. Sampling a curve or animation track in itself doesn't do any kind of transformation, it just returns sampled data. If you assign that data in a field that has TransformRotate/TransformFull/.. however that field will be transformed when switching from the SpawnerScript's Eval() to other evolvers.

If you need to assign a sampled position to the particle's Position (or any other field), but don't want to be affected by transforms, you can assign that field in the SpawnerScript's PostEval() function. All script evolvers are executed in worldspace, unless you nest them in a localspace evolver.

by HugoPKFX (16.7k points)