View Full Version : How to "goal" particle on animated surface?
06-27-2008, 01:26 PM
How can I achieve that particles are following a goal, and as soon as they hit the goal object, they stick on its surface. The goal object itself got a noise modifier, meaning it's shape is animating over time. I can't get the particle to stick on it. :(
06-27-2008, 02:02 PM
Lock/Bond operator from Box#1 would do it.
06-28-2008, 12:28 AM
...which I don't have. :argh:
Any other solutions? Maybe scripting based?
06-28-2008, 12:42 AM
I'm certainly no expert at particle flow, but isn't this exactly what the 'find target' operator is for?
You make your particles follow the 'goal' object with the 'find target' operator and when they hit it you send them to a 'speed by surface' operator with 0 speed, 'position object' operator or something to make them stick?
I recall watching a tutorial where I was shown how to make particles stick to a deforming mesh so that is certainly possible. If the 'find target' operator does what I think it does, then it should work.
In my mind it sounds logical. :p
I'll see if I can test it tomorrow(today?), well after I've gotten some sleep atleast. :)
06-28-2008, 10:12 AM
Position Object operator does not allow you to stick a particle to the current location; it generates a random location on the surface of the reference object and places a particle there. Hence there is an undesirable visual "jump" in particle position when switching from an Event with Find Target operator to the Event with the Position Object operator.
That is one of the reason why Lock/Bond operator was implemented - it finds the current particle position, and re-factors this position into local surface coordinates of the reference object, and glues a particle there. As a result - no visual jump whatsoever.
I'm sure it's possible to repeat the functionality of Lock/Bond operator with a Script Operator but it will be a long exercise in scriping if we are talking about deforming animated surface of the reference object. If the surface of the reference mesh is not animated, then it should be easy - just calculate local coords of a particle in relation to the reference object, and then re-apply these local coordinates on every frame.
06-28-2008, 10:24 AM
Ahh, great reply, thanks. That surely helped us both. :)
Saved me the time of testing out my theory atleast. :p
06-28-2008, 10:24 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2015, Jelsoft Enterprises Ltd.