THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 28/06/2011 at 07:03, xxxxxxxx wrote:
Sorry to resurrect this old thread, but I've discovered why the Deflector modifier apparently doesn't work for third-party particle systems. I thought I'd pass this on in part return for the help I've been getting with my own particles.
According to the SDK, when calling ModifyParticles, the array pp, which is an array of Particle objects, is "...used to read the particles information from and should not be modified.". Well, for all the the other modifiers, that's true, but it seems that Maxon's programmers ignored their own rule when programming the deflector.
The deflector modifies the pp array directly instead of returning a changed velocity. So, to make the deflector object work, what you have to do is check to see if your particles's original v3 is the same as the pp array's v3 after the call to ModifyParticles. Normally it will be, because the other modifiers don't alter pp.v3 directly - they change the vector v in the array ss (this is using the SDK's variable names). If pp.v3 has been altered, just set your original v3 to that value and the deflector will work.
For safety, I also check to make sure I'm dealing with a deflector object before changing my original v3.
I hope this explanation makes sense - I can clarify with code if not