Hello,

  can you clarify the reason for this change ?
Is it needed for Apricot ?

> Revision: 3651
>           http://cel.svn.sourceforge.net/cel/?rev=3651&view=rev
> Author:   genjix
> Date:     2008-08-23 07:04:50 +0000 (Sat, 23 Aug 2008)
>
> Log Message:
> -----------
> reset old behaviour but left commented code.
>
> Modified Paths:
> --------------
>     cel/trunk/plugins/propclass/cameras/tracking/tracking.cpp
>
> Modified: cel/trunk/plugins/propclass/cameras/tracking/tracking.cpp
> ===================================================================
> --- cel/trunk/plugins/propclass/cameras/tracking/tracking.cpp 2008-08-23
> 03:03:02 UTC (rev 3650)
> +++ cel/trunk/plugins/propclass/cameras/tracking/tracking.cpp 2008-08-23
> 07:04:50 UTC (rev 3651)
> @@ -36,6 +36,8 @@
>  // CEL Includes
>  #include "propclass/mesh.h"
>
> +#include "iengine/engine.h"
> +
>  //---------------------------------------------------------------------------
>
>  CS_IMPLEMENT_PLUGIN
> @@ -419,16 +421,16 @@
>    }
>    else if (targetstate == TARGET_NONE)
>    {
> -    /*PanAroundPlayer (playpos, elapsedsecs);
> +    PanAroundPlayer (playpos, elapsedsecs);
>
>      pos = playpos - cam_dir * posoffset_z;
>      pos.y = playpos.y + posoffset_y;
>
>      tar = playpos;
> -    tar.y += targetyoffset;*/
> +    tar.y += targetyoffset;
>
>      // get flat 2D vector (zero out y) of camera to the player
> -    csVector3 camplay (playpos - pos);
> +    /*csVector3 camplay (playpos - pos);
>      camplay.y = 0.0f;
>      float dist = camplay.Norm ();
>      camplay.Normalize ();
> @@ -454,6 +456,27 @@
>      // setup the target
>      tar = (dist * camdir * camplay) * camdir + pos;
>      tar.y = playpos.y + targetyoffset;
> +
> +    // --------------
> +    camdir = pos - tar;
> +    camdir.y = 0.0;
> +    CS::Swap(camdir.x, camdir.z);
> +    //camdir.Normalize ();
> +    //tar += camdir;
> +
> +    csVector3 offset (pos - tar);*/
> +    //tar = playpos + csVector3 (0, targetyoffset, 0);
> +
> +    //pos -= (offset >> csVector3 (1, 0, 0));
> +    //pos = playpos + csVector3 (0, targetyoffset, 0) + offset;
> +
> +    //tar += offset;
> +    //pos += offset.Norm () * camdir;
> +    /*csRef<iEngine> engine = csQueryRegistry<iEngine> (object_reg);
> +    iMovable *corn = engine->FindMeshObject ("Corner0")->GetMovable ();
> +    iMovable *corn1 = engine->FindMeshObject ("Corner1")->GetMovable ();
> +    corn->SetPosition (playpos + csVector3 (0, targetyoffset, 0));
> +    corn1->SetPosition (tar);*/
>    }
>    else if (targetstate == TARGET_OBJ)
>    {
>


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Cel-main mailing list
Cel-main@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cel-main

Reply via email to