should_simulate
Returns the input object
or prev_object
, depending on whether the current time is a valid simulation step. See the simulation_example
for a basic example of how to use this node.
Inputs
object
Connect an object or an array of objects from a simulation computation, to return if the simulation step is valid.
prev_object
Connect an object or an array of objects to return if the simulation step is not valid, for example, the result of the previous simulation computation.
start_frame
The frame at which the simulation starts.
backward
Whether or not to simulate backward.
Outputs
out_object
The input object, if all the conditions are met.