JeremyR
Im trying to help a guy who is having problems with aim direction and velocity. Basically he has these particles crawling along the surface of an object using UV expressions and is using velocity as aim direction on his instancer. This is fine until he has decided to animate his object in world space, now his particles face in the velocity of the object itself rather than its GoalUV.

Im trying to figure out how to get local space velocity so I thought the pointsOnMeshInfo node would come to the rescue but it looks as though the outPositionPP is in world space coords, is this right?

I started looking at UVs instead but I cant figure out a way of converting these 2 distinct orientations into something useable, ie a direction vector of 3 values.
Reply 0 0
JeremyR
Okay so Ive decided to use my initial idea and that is to grab the velocity of the moving object and subtract that from the overall velocity of the particles and though in theory this works, for some reason the particle velocity wont update unless I keep hitting the edit button inside the expression editor.
Apart from using eval and `` I dont know how to get this to evaluate inside the expression editor. Any ideas, scene attached.

Play timeline and stop, you'll see particle instances being influenced by motion of sphere also. Hit the edit button inside the xpression editor and they will revert back to 'local space' velocity.
Reply 0 0
JeremyR
Solved it, I used a custom attribute instead
finalVelocity = velocity-objectVel;

rather than
velocity-=objectVel;
Reply 0 0
Reply