[updated]: Make certain objects arrive in the scene (a lorry)

Started by
23 comments, last by mdias 9 years, 10 months ago

Has anyone used a simulation library before? Which one do you think is the best?

https://www.google.com.hk/search?q=Simulation+Library&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:zh-TW:official&client=firefox-a&channel=sb&gfe_rd=cr&ei=jX-TU82eHsn0mAX_2IGADQ

Advertisement

What is a simulation library?

It's a C++ library which encompasses all the features we discussed above.

I found one of them on my hard drive, which is called C++ Sim,

But I think I have to give it up, because it is written for unix, not win32

which is the platform I am currently working on.

Sorry, I forgot to link to share. But it's from the University of NewCastle, UK

There are plenty of timer examples out there. All you need is to decide on a "normal" time each truck arrives and add/subtract some random value from the time. When that time is reached in your game loop, send in the truck (lorry). You don't need to make this any more complicated with simulation libraries.....

Wouldn't it just be easier to, at load time of the data you have, add/subtract a random number so that at load time you already have "randomized" data and act deterministically from there?

If you want to repeat the process several times, keep a copy of the original data, and recalculate the next time (with some randomness) a truck should go everytime a new truck goes.

This topic is closed to new replies.

Advertisement