How is the speed indicator in the car demos made?

Software: Away3D 4.x

edgar, Member
Posted: 10 July 2012 02:30 PM   Total Posts: 52

Hi there,

I wonder how the speed indicator in the car drive demos is made, when you accelerate, the pointer turns corresponding to the speed.

Is this made with a sprite, e.g different layers in a movieclip, or what else?

Many thanks
Edgar

   

kochumvk, Newbie
Posted: 11 July 2012 07:26 AM   Total Posts: 17   [ # 1 ]

I am not sure about about the demo you mentioned, however I Have done this in 2D when I created a drag game more than 2 years back.

I had clocks for Rev counter, speed and what not it was a packed display with engine temp display and even a throttle position indicator.

Implementation in 3D:

You will have a speed variable with a possible range of value say 0 to 300 Kmph.

Your needle object will map speed variable to rotation property from say 20 degree to 340 degree.

essentially you will convert the instantaneous speed to the range 20 - 340 in this case.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X