Controlling speed for instanced Object
when you have instanced an object to particle specially a moving geometry its sometime very difficult to handle cause sometime movement of particles is higher than your instanced object or the other way your object speed is higher then particles(e.g you have created a crown moving through the scene and when you have instanced it to particle they are moving (sliding). there are other manual ways to fix it but i will show you how to do it with expressions, And For this we use a matching script with it you can query how much fast is....particle/object is moving and then according to it you can plug that value into your instanced object/Particles.
A real good way while you are using instanced Geometry, is to use Custom Attributes and then write the expression on the custom attribute and then plug that custom attribute into your instanced geometry.
for a situation where let say you have (crowd) walking animation
you instanced it with particles first you instance like you do normally with basic cautions thats you take before instancing any geometry
create custom attibute from Particle Attribute
goto
ADD DYNAMIC ATTRIBUTE
and add a attribute with you desired setting
customAge
float and Per Particle Array
you will see a new attribute in per particle array attributes named customAge
we'll write a custom expression as follow:-
float $Speed = mag(particle2Shape.velocity);
particleShape1.customAge = particleShape1.age * $Speed /10 (this number can differ as per your need you have to keep playing untill your object is no longer sliding !) ;
mag is for Magnitude ! see documentation for it !
if you are not getting a very good try low down da lifespan of the particle through the scene
hope it helps
enjoy instancing
:bannana:
Learn the Rules|Then|
Burn the Rules Book
Last edited by mind_raper; 25-08-2003 at 08:34 AM.