particles, goals, and scripting 2005-05-31 - By IOMEDIA.SoftXSI
Back I'm trying to create a scripted event for particles so that a goal object is only activated as the particles get near it.
I don't know the syntax, but the logic is:
particleToGoalDistance = particlePosition - goal Position
if (particleToGoalDistance >= 50) { goalWeight = 100 } else { goalWeight = 0 }
Or, if it makes it easier, I may switch this from distance to simply age
So, if the age of the particle is larger than or equal to a certain amount, then make the goal active (basically, I'm assuming that age and position are related and because I don't need an exact distance calculation, the age may do)
Does anyone know the syntax for this? It would be much appreciated. Thanks.
--- Unsubscribe? Mail Majordomo@(protected) with the following text in body: unsubscribe xsi
|
|