View Full Version : Vector math for determining cylindrical distance?

Mike Abbott
09 September 2006, 10:52 PM
I have some particles emitting from the world origin and travelling down the Z axis.
I want to modify a particle property depending on how far they are away, cylindrically, from the Z axis. I don't want to modify particles that remain close to the Z axis, even though they may have travelled along way along it.

I'll be pulling particle data fron the 'TP GetData' node, and comparing it to a node located at world origin. Can anyone tell me the right vector math set up to do this?

Thanks for reading...

Mike A.

09 September 2006, 09:19 PM
ahm isnt that simple pitagora? u get the distance from x and y coordiunates, distance^2 = x*x + y*y

CGTalk Moderation
09 September 2006, 09:19 PM
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.