The direction is correct
JPCT coordinates != OpenGL coordinates ![Smiley :)](http://www.jpct.net/forum2/Smileys/default/smiley.gif)
But sth is wrong with position.
The position of the red box is 0, 0, 0.
![](http://dl.dropbox.com/u/48979872/b.png)
The car (bigger red box) moved to 0, 0, -20. The light changed x and z coordinates.
![Smiley :)](http://www.jpct.net/forum2/Smileys/default/smiley.gif)
![Smiley :)](http://www.jpct.net/forum2/Smileys/default/smiley.gif)
But sth is wrong with position.
Code Select
car.carBody.object3d.getTransformedCenter(position);
light.setPosition(position);
The position of the red box is 0, 0, 0.
![](http://dl.dropbox.com/u/48979872/b.png)
The car (bigger red box) moved to 0, 0, -20. The light changed x and z coordinates.
![](http://dl.dropbox.com/u/48979872/c.png)