Create a new subclass inside the base external motion class that will inherit from the ExternalMotionModule class.
// ... public class TestExternalMotion : ExternalMotionDatapublicsealedclassTestForce:ExternalMotionModule{publicoverridebool IsFinished =>Time.time> endTime;privatereadonlyVector3 force;privatereadonlyfloat endTime;publicTestForce(TestSettings settings) { force =settings.Force; endTime =Time.time+settings.Duration; }publicoverrideVector3Evaluate() {return force; }}
The Evaluate() method will be called every time until IsFinished becomes true. The return value of the Evaluate() method is the force that will be applied to camera motion.
Assign a class that inherits from ExternalMotionModule to the GetPosition and GetRotation properties.