Page 1 of 1

how to know when an Null object accelerates or brakes?

PostPosted: 03/12/2017, 3:59 pm
by Mathieu Thibaut
Hello,

I have a very simple set: a null object that moves around. the trajectory is made by hand, (but I guess it could also be from a wiggle expression).
This null object is leading the emitter in particular, and I would like to be able to produce particles only when the Null brakes (slows down suddenly) or when it accelerate.

Is there any expression to detect when an object brakes or accelerates?

thanks

M

Re: how to know when an Null object accelerates or brakes?

PostPosted: 03/14/2017, 8:04 am
by Mylenium
You need to integrate the velocity at any given time and compare it to a previous state and then define a threshold. Refer to this for basic concepts:

http://www.motionscript.com/articles/speed-control.html

Mylenium

Re: how to know when an Null object accelerates or brakes?

PostPosted: 05/13/2017, 1:21 am
by vjk_vfx
plz check this script if it's helpfull