Current Scene to render for given time.
Looping is automatically done here, if parameter Loop is True . When it is False , there is no looping, which means that when Time is < 0, we show the first frame, and when Time is > Duration, we show the last frame forever.
This looping (or not looping) is done regardless of whether the 3D model wants (or not) looping. For example, in case of kanim files, we ignore their loop boolean attribute. In case of X3D TimeSensor node, we ignore TimeSensor.loop field. In other words, any looping settings inside 3D model are ignored. You control looping fully by the Loop parameter to this method.
If we use TCastlePrecalculatedAnimation underneath, then this returns appropriate frame of this animation.
If we use TCastleScene with TimeSensor underneath, then this returns the scene with state reflecting given time — in other words, we'll send proper events to TimeSensor to make this Time current.
|