![]() |
|
#4
|
|||
|
|||
|
For the easy way out, you can read the state of the slider in the updateCar method.
If you multiply the movement speed by the slider value, it will allow you to scale between 0 and your max speed, which is 60 in this case. view.move([0, 0, MOVE_SPEED*slider.get()*viz.elapsed()], viz.BODY_ORI) Do this for each movement call you make. You are now scaling the speed of the car by the amount of time since the last update and the value of the slider. Last edited by shivanangel; 03-16-2015 at 12:13 PM. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Slider Assistance | new_horizon | Vizard | 3 | 05-16-2012 08:32 AM |
| adding more than 1 action for avatar animation slider control | yak | Vizard | 0 | 07-21-2009 12:22 PM |
| help with slider code | yak | Vizard | 2 | 07-20-2009 01:12 PM |
| Vizmenu slider bug? | Gladsomebeast | Vizard | 2 | 10-22-2008 09:05 PM |
| Blending/Fading 5 Textures with a Slider | south_bank | Vizard | 2 | 05-15-2008 08:59 AM |