OSGGraph: Lower F3 chase camera target. This brings the car down to the lower half of the camera shot like in most racing games.
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9622 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 149531626af29aad4401b7f0c3dbf04ad0f2729b Former-commit-id: c8176e105913d63be166c3ca9d538543e5a13d4a
This commit is contained in:
parent
cbbb2e2f76
commit
f8043f2ed7
1 changed files with 3 additions and 1 deletions
|
@ -4,6 +4,7 @@
|
|||
created : Tue Feb 26 12:24:02 CEST 2013
|
||||
copyright : (C) 2013 by Gaëtan André
|
||||
email : gaetan.andre@gmail.com
|
||||
version : $Id$
|
||||
|
||||
***************************************************************************/
|
||||
|
||||
|
@ -609,7 +610,7 @@ public:
|
|||
|
||||
center[0] = car->_pos_X - dist * cos(A + PI * car->_glance) + dist * cos(A + PI * car->_glance - offset);
|
||||
center[1] = car->_pos_Y - dist * sin(A + PI * car->_glance) + dist * sin(A + PI * car->_glance - offset);
|
||||
center[2] = car->_pos_Z;
|
||||
center[2] = car->_pos_Z + 1.0;
|
||||
|
||||
speed[0] = car->pub.DynGCg.vel.x;
|
||||
speed[1] = car->pub.DynGCg.vel.y;
|
||||
|
@ -2620,3 +2621,4 @@ void SDCameras::loadSpanValues()
|
|||
}
|
||||
|
||||
} // namespace osggraph
|
||||
|
||||
|
|
Loading…
Reference in a new issue