About Store Forum Documentation Contact



Post Reply 
flying creature
Author Message
khces Offline
Member

Post: #1
flying creature
hi grin

Waypoint flying creature to have to move naturally,
(For example.. same bird)
How do I approach...

English sorry....

help me wink
(This post was last modified: 01-25-2011 09:34 AM by khces.)
01-25-2011 09:34 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
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
Find all posts by this user Quote this message in a reply
khces Offline
Member

Post: #3
RE: flying creature
thanks lol
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
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #4
RE: flying creature
Vec look_direction=!(way_pos-old_pos);
01-27-2011 02:43 PM
Find all posts by this user Quote this message in a reply
Post Reply