Get Remaining Seconds in Frame

 
 
 

This compound is similar to Get Remaining Frame Fraction, except that it returns the time left to simulate in the current frame in seconds. This is usually a very small fraction in seconds. For example, at 30 fps, one frame is 1/30 of a second, or 0.0333 seconds. Halfway through the frame, this compound returns the value 0.016666, whereas the Get Remaining Frame Fraction compound would return a value of 0.5.

You could use this compound to figure out how far a particle might move to guess its position after simulation. You can multiply its velocity by the result of this compound to get the movement of the particle in this frame (ignoring any forces).

Plug this compound's Result output into any port that can accept a scalar (per point) value.

Category: Data Access

Output Ports: Result