Crude helper class for applying simulated transforms for all animated objects of a sequence on camera cut frames from sequencer Simulated transforms are passed onto the renderer at the end of a sequence's evaluation and will be used for motion vector computation
更多...
#include <IMovieSceneMotionVectorSimulation.h>
|
| virtual void | Add (USceneComponent *Component, const FTransform &SimulatedTransform, FName SocketName)=0 |
| | Add a new simulated transform for the specified component (and optionally a socket on that component). 更多...
|
| |
| virtual void | Apply (IMovieScenePlayer &Player)=0 |
| | Apply all the simulated transforms from this frame using the specified player, passing them onto the renderer for this frame 更多...
|
| |
| virtual void | PreserveSimulatedMotion (bool bShouldPreserveTransforms)=0 |
| | Indicate that all the currently stored simulated transforms should be preserved or reset once evaluated this frame 更多...
|
| |
Crude helper class for applying simulated transforms for all animated objects of a sequence on camera cut frames from sequencer Simulated transforms are passed onto the renderer at the end of a sequence's evaluation and will be used for motion vector computation
◆ Add()
Add a new simulated transform for the specified component (and optionally a socket on that component).
Persists only while PreserveSimulatedMotion is enabled.
- 参数
-
| Component | The component that should have the simulated transform associated with it |
| SimulatedTransform | The simulated previous position, rotation and scale of the component last frame |
| SocketName | (Optional) The name of a socket on 'Component' which affects the simulated transform of all components attached to the socket. |
◆ Apply()
Apply all the simulated transforms from this frame using the specified player, passing them onto the renderer for this frame
- 参数
-
| Player | The movie scene player currently playing back the sequence |
◆ GetSimulationTime()
Computes a time at which to simulate motion vectors for the current frame.
- 返回
- A time one-frame in the future. Information for the previous frame should be extrapolated backwards from here to ensure correct simulations where no previous data exists (such as animations that start on frame 0).
◆ IsEnabled()
Check whether we should simulate motion vectors for the current evaluation.
- 返回
- true if we should simulate motion vectors, false otherwise.
◆ PreserveSimulatedMotion()
| virtual void IMovieSceneMotionVectorSimulation::PreserveSimulatedMotion |
( |
bool |
bShouldPreserveTransforms | ) |
|
|
pure virtual |
Indicate that all the currently stored simulated transforms should be preserved or reset once evaluated this frame
- 参数
-
| bShouldPreserveTransforms | When true, simulated transforms will be preserved indefinitely (useful if a sequence is paused); when false, transforms will all be reset once evaluated this frame. |
该结构体的文档由以下文件生成:
- IMovieSceneMotionVectorSimulation.h