FireMan
Member
|
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 |
|