About Store Forum Documentation Contact



Post Reply 
Waypoint problem
Author Message
FireMan Offline
Member

Post: #1
Waypoint problem
//Edit
Sorry. I make it.
But i have next problem.
If my model fly follow waypoint, never hange angle.
I make:

Code:
Actor ptak;
Mesh *ptakk;

In Update:

Code:
ptakk=Meshs("../Data/Obj/ptak/model.mesh");
ptak.create(Box(1,1,1));

In Draw:

Code:
ptakk->draw(ptak.matrix());
And:

Code:
void DrawWaypoints(Str name)
{
   if(Game::Waypoint *waypoint=Game::World.findWaypoint("1"))
   {
              waypoint->draw();
      Vec pos=waypoint->pos (Tm.time()*4);
          pos.draw(RED);
          ptak.pos(pos);

   }
}

Photos:

http://img696.imageshack.us/gal.php?g=94630343.jpg

Forum reklamowe: http://ad-forum.pl
(This post was last modified: 12-20-2009 10:40 AM by FireMan.)
12-19-2009 07:27 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply