khces
Member
|
flying creature
hi
Waypoint flying creature to have to move naturally,
(For example.. same bird)
How do I approach...
English sorry....
help me
(This post was last modified: 01-25-2011 09:34 AM by khces.)
|
|
01-25-2011 09:34 AM |
|
Esenthel
Administrator
|
RE: flying creature
You can use waypoint with spline smoothing parameter to true, as base path.
additionaly you can use simple flying animation for it.
|
|
01-26-2011 02:15 PM |
|
khces
Member
|
RE: flying creature
thanks
Code:
Vec old_pos = pos();
Vec way_pos = waypoint.pos(Time.time()*3,true);
Flt angle_delta =AngleDelta(angle.x+PI_2, Angle(way_pos.xz() - pos().xz())),
max_frame_delta=Time.d()*DegToRad(360);
Clamp(angle_delta, -max_frame_delta, max_frame_delta);
angle.x+=angle_delta;
pos(way_pos);
How Change of direction from high to low place?
(This post was last modified: 01-27-2011 05:28 AM by khces.)
|
|
01-27-2011 05:28 AM |
|
Esenthel
Administrator
|
RE: flying creature
Vec look_direction=!(way_pos-old_pos);
|
|
01-27-2011 02:43 PM |
|