Quantcast
Channel: Latest Questions by Tanoshimi2000
Viewing all articles
Browse latest Browse all 91

Best way to record/save race car runs

$
0
0
So, I have a racing game mostly done. Now I want to be able to record the car's run so that I can play it back. I'm NOT trying to record video, or the screen, or the game, I want to record the car (GameObject) so that when the next racer races, they can race against the previous run. So it will be a completely new game, but a bot racer (computer controlled gameobject) will replicate the previous or best run. What's the best way to do this? Record the position and rotation with AnimationCurves, then read those curves and set the position/rotation later? Create a custom asset that stores the position and rotation and then uses them to set the bot's later? Wouldn't that be a lot of data if captured each frame? Maybe just store rotation and speed, and let it replay those to establish position? Maybe there's an asset out there that can do this, but most of what I saw were scene based, or didn't save. I just want to track the car's position and rotation, and use that data later. Suggestions?

Viewing all articles
Browse latest Browse all 91

Latest Images

Trending Articles





Latest Images