I’m modeling some vehicles represented by bullet nodes in a simulation that have propulsion forces that I’m calculating and sending to bullet. In order to get accurate results (since I can’t change what bullet integrates), I have to step the simulation slowly. I also have a planner that periodically should calculate what these forces should be at a slower rate than the physics is stepped.
The best way I could think of to achieve this is to create a new TaskManager and set it’s clock to a non-realtime clock with my desired update rate. Then I could set a task to run the physics update and another with doTaskLater to trigger the planner periodically. However, I haven’t found an example of how to create a new TaskManager to do this, so I’m not sure of the correct approach. Any advice or comments would be appreciated!