Sunday, January 23, 2011

Realistic dice throwing animation with predefined outcome

Programmer Question

I need to create a small dice game in Flash. The random number generator is external and I have to create a 3D realistic dice animation with that outcome.



I'm using Away3D engine and JigLib for physics.
So far the best idea I've had is to do many simulations and create a list of outcomes and their corresponding input parameters (initial position, initial orientation and the forces added to the RigidBody).



This is not working so well. Sometimes for the same parameters the outcome is different.



What is the best way to do this?



Find the answer here

No comments:

Post a Comment

LinkWithin

Related Posts with Thumbnails