Hello everyone.
I’m new to MEL and I’m attempting to write a script that uses Bullet physics to simulate car motion, I chose Bullet because it allows the user the change bullet parameters in real-time while the simulation is playing, allowing me to control the car in real-time using hotkeys. So I’ve assigned hotkeys to all the various car control commands, making it just like a car driving game, ‘W’ to accelerate , ‘S’ to brake , ‘Space’ to handbrake, everything. The only problem is I don’t know how to bake the simulation in real-time. The “Bake Simulation” option in the “Keys” Menu in Maya, only seems to bake the whole time-slider using only the current bullet parameters , so I can’t change it while the baking is in progress. Is there a way Bake the simulation in real-time?? I don’t mind getting my hand dirty in API programming to do it. I know C++. Thanks.