hi guys, i noticed that on the demo showed here: http://flashdaily.net/post/28546902414/away3d-gold-awayphysics-vectormap the camera remains in the back of the car even if the car tries to rotate towards the camera (a view that does not allow us to view the front of the car). I want to achieve the same effect, but what works for me currently is only the view navigation using the mouse ( the mouseMove, mouseWheel etc functions) I am not sure which part of the source code provided is setting the default position of the camera (behind the car view) and its rotation to follow the car. Any ideas?
Racing Game Behind the Car ViewSoftware: Away3D 4.x |
||
|
||
emmie55, Newbie
Posted: 04 December 2013 01:23 PM Total Posts: 10 [ # 1 ] the source code is here https://github.com/lo-th/loth_labs/blob/master/src/Intermediate_Car.as |
||
John Brookes, Moderator
Posted: 04 December 2013 01:38 PM Total Posts: 732 [ # 2 ] Dont think the source is the same as the demo. Just use the SpringController for the camera. |
||
|
||
John Brookes, Moderator
Posted: 06 December 2013 04:31 PM Total Posts: 732 [ # 4 ] positionOffset… camController = new SpringController(camera, carBodyMesh); Just play with the values. |