Jump to content

Why doesn't my "bird" fly smooth?


Recommended Posts

I'm trying to add some birds to VS. I'm very early in this project, but I can't figure out why my bird's flight is so erratic. It's supposed to go in a line straight as an arrow between two points, and according to my debug output it even does that. But on the screen it bounces up and down while doing that. See the attached video. Does anybody know what might be going on?

I'm achieving flight by setting entity.Controls.IsFlying = true, updating entity.ServerPos Roll/Pitch/Yaw, and setting entity.Controls.FlyVector for the direction I want to go in. Is that right?

Full source: https://github.com/rtwfroody/vsbirds/blob/master/src/BirdsMod.cs

Typical debug output:

12.5.2020 17:21:27 [Debug] pos=[XYZ: 499969.537133742/7/499978.554310062, YPR -2.441866/0/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=-2.441866, pitch=0, flyVector=[x=0.00549350346728461, y=0.00137978041799945, z=0.00824121452767295]
12.5.2020 17:21:27 [Debug] pos=[XYZ: 499969.550978093/7.00347722815726/499978.575079007, YPR -2.341866/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=-2.341866, pitch=0.00137978, flyVector=[x=0.00549350367772244, y=0.00137978047085727, z=0.00824121484338899]
12.5.2020 17:21:27 [Debug] pos=[XYZ: 499969.579668673/7.01068332193084/499978.618119888, YPR -2.241866/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=-2.241866, pitch=0.00137978, flyVector=[x=0.00549350355868534, y=0.00137978044096428, z=0.00824121466484746]
12.5.2020 17:21:27 [Debug] pos=[XYZ: 499969.619757132/7.02075217328531/499978.678259576, YPR -2.141866/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=-2.141866, pitch=0.00137978, flyVector=[x=0.00549350388707293, y=0.00137978052344056, z=0.00824121515743519]
12.5.2020 17:21:27 [Debug] pos=[XYZ: 499969.66859607/7.03301884633651/499978.751526513, YPR -2.041866/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=-2.041866, pitch=0.00137978, flyVector=[x=0.00549350365550093, y=0.00137978046527736, z=0.00824121481004202]
12.5.2020 17:21:27 [Debug] pos=[XYZ: 499969.724153004/7.04697285037172/499978.834871615, YPR -1.941866/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=-1.941866, pitch=0.00137978, flyVector=[x=0.00549350378484381, y=0.00137978049775827, z=0.0082412150040521]
12.5.2020 17:21:27 [Debug] pos=[XYZ: 499969.784867537/7.0622222670767/499978.925954017, YPR -1.841866/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=-1.841866, pitch=0.00137978, flyVector=[x=0.00549350369245758, y=0.00137978047456143, z=0.00824121486548565]
12.5.2020 17:21:27 [Debug] pos=[XYZ: 499969.849541707/7.07846620939412/499979.022976566, YPR -1.741866/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=-1.741866, pitch=0.00137978, flyVector=[x=0.0054935036051045, y=0.00137978045262387, z=0.00824121473446371]
12.5.2020 17:21:27 [Debug] pos=[XYZ: 499969.917255805/7.09547367761763/499979.124559537, YPR -1.641866/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=-1.641866, pitch=0.00137978, flyVector=[x=0.00549350371338128, y=0.00137978047981145, z=0.00824121489686262]
12.5.2020 17:21:27 [Debug] pos=[XYZ: 499969.987303742/7.11306732673901/499979.229643676, YPR -1.541866/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=-1.541866, pitch=0.00137978, flyVector=[x=0.0054935035431771, y=0.00137978043706791, z=0.00824121464152377]
12.5.2020 17:21:27 [Debug] pos=[XYZ: 499970.059143436/7.1311110037451/499979.337415762, YPR -1.441866/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=-1.441866, pitch=0.00137978, flyVector=[x=0.00549350374664349, y=0.00137978048817265, z=0.00824121494677587]
12.5.2020 17:21:27 [Debug] pos=[XYZ: 499970.132358712/7.149500180226/499979.447251462, YPR -1.341866/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=-1.341866, pitch=0.00137978, flyVector=[x=0.00549350369908693, y=0.00137978047622969, z=0.00824121487546734]
12.5.2020 17:21:27 [Debug] pos=[XYZ: 499970.206630063/7.16815460662164/499979.558671459, YPR -1.241866/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=-1.241866, pitch=0.00137978, flyVector=[x=0.00549350373364368, y=0.00137978048491215, z=0.00824121492733678]
12.5.2020 17:21:27 [Debug] pos=[XYZ: 499970.281712194/7.18701267303517/499979.671307766, YPR -1.141866/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=-1.141866, pitch=0.00137978, flyVector=[x=0.00549350353775949, y=0.00137978043571456, z=0.00824121463350186]
12.5.2020 17:21:27 [Debug] pos=[XYZ: 499970.357416782/7.2060270796429/499979.784877868, YPR -1.041866/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=-1.041866, pitch=0.00137978, flyVector=[x=0.00549350369205351, y=0.00137978047446414, z=0.00824121486494858]
12.5.2020 17:21:27 [Debug] pos=[XYZ: 499970.395455904/7.21558120767444/499979.841943194, YPR -0.941866/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=-0.941866, pitch=0.00137978, flyVector=[x=0.00549350352390658, y=0.00137978043223679, z=0.00824121461272194]
12.5.2020 17:21:27 [Debug] pos=[XYZ: 499970.471833916/7.23476475532902/499979.95652355, YPR -0.841866/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=-0.841866, pitch=0.00137978, flyVector=[x=0.00549350351593888, y=0.00137978043024052, z=0.00824121460078585]
12.5.2020 17:21:27 [Debug] pos=[XYZ: 499970.54853339/7.25402904321305/499980.071586155, YPR -0.741866/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=-0.741866, pitch=0.00137978, flyVector=[x=0.00549350367659009, y=0.00137978047059464, z=0.00824121484182729]
12.5.2020 17:21:28 [Debug] pos=[XYZ: 499970.62547966/7.27335531779866/499980.187018997, YPR -0.641866/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=-0.641866, pitch=0.00137978, flyVector=[x=0.00549350381018241, y=0.00137978050414788, z=0.00824121504222601]
12.5.2020 17:21:28 [Debug] pos=[XYZ: 499970.702615403/7.29272918147734/499980.302736081, YPR -0.5418659/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=-0.5418659, pitch=0.00137978, flyVector=[x=0.00549350366845178, y=0.00137978046855203, z=0.00824121482965962]
12.5.2020 17:21:28 [Debug] pos=[XYZ: 499970.779896609/7.31213958061056/499980.418671386, YPR -0.441866/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=-0.441866, pitch=0.00137978, flyVector=[x=0.00549350367152818, y=0.00137978046932239, z=0.00824121483427828]
12.5.2020 17:21:28 [Debug] pos=[XYZ: 499970.857289491/7.33157802903993/499980.534774225, YPR -0.341866/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=-0.341866, pitch=0.00137978, flyVector=[x=0.00549350360403512, y=0.00137978045236937, z=0.00824121473298436]
12.5.2020 17:21:28 [Debug] pos=[XYZ: 499970.934768111/7.35103801168034/499980.651005684, YPR -0.241866/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=-0.241866, pitch=0.00137978, flyVector=[x=0.00549350368789712, y=0.00137978047343389, z=0.00824121485878353]
12.5.2020 17:21:28 [Debug] pos=[XYZ: 499971.012312553/7.37051452679535/499980.76733589, YPR -0.141866/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=-0.141866, pitch=0.00137978, flyVector=[x=0.0054935034898925, y=0.00137978042369657, z=0.00824121456173218]
12.5.2020 17:21:28 [Debug] pos=[XYZ: 499971.08990753/7.39000373425845/499980.883741904, YPR -0.04186597/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=-0.04186597, pitch=0.00137978, flyVector=[x=0.00549350353107777, y=0.00137978043403594, z=0.00824121462351251]
12.5.2020 17:21:28 [Debug] pos=[XYZ: 499971.167541302/7.40950268599092/499981.00020612, YPR 0.05813403/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.05813403, pitch=0.00137978, flyVector=[x=0.00549350354944646, y=0.00137978043864571, z=0.00824121465100796]
12.5.2020 17:21:28 [Debug] pos=[XYZ: 499971.24520486/7.42900911869941/499981.116715019, YPR 0.158134/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.158134, pitch=0.00137978, flyVector=[x=0.00549350363619859, y=0.00137978046043737, z=0.00824121478118402]
12.5.2020 17:21:28 [Debug] pos=[XYZ: 499971.322891284/7.44852129482727/499981.233258222, YPR 0.258134/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.258134, pitch=0.00137978, flyVector=[x=0.00549350388930721, y=0.00137978052401528, z=0.00824121516093002]
12.5.2020 17:21:28 [Debug] pos=[XYZ: 499971.400595265/7.4680378805207/499981.349827762, YPR 0.358134/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.358134, pitch=0.00137978, flyVector=[x=0.00549350390783149, y=0.00137978052866731, z=0.00824121518874231]
12.5.2020 17:21:28 [Debug] pos=[XYZ: 499971.478312725/7.48755785162524/499981.466417523, YPR 0.458134/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.458134, pitch=0.00137978, flyVector=[x=0.00549350357901115, y=0.0013797804460807, z=0.00824121469544776]
12.5.2020 17:21:28 [Debug] pos=[XYZ: 499971.556040531/7.50708042160292/499981.583022807, YPR 0.558134/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.558134, pitch=0.00137978, flyVector=[x=0.00549350384667709, y=0.00137978051330809, z=0.0082412150969889]
12.5.2020 17:21:28 [Debug] pos=[XYZ: 499971.633776283/7.52660498691645/499981.699640009, YPR 0.5879489/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.5879489, pitch=0.00137978, flyVector=[x=0.00549350355049448, y=0.00137978043891638, z=0.00824121465264958]
12.5.2020 17:21:28 [Debug] pos=[XYZ: 499971.711518132/7.54613108397094/499981.81626636, YPR 0.5879489/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.5879489, pitch=0.00137978, flyVector=[x=0.0054935039222481, y=0.00137978053228951, z=0.00824121521034724]
12.5.2020 17:21:28 [Debug] pos=[XYZ: 499971.789264665/7.56565835716533/499981.932899735, YPR 0.5879489/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.5879489, pitch=0.00137978, flyVector=[x=0.00549350383128403, y=0.00137978050945002, z=0.00824121507391837]
12.5.2020 17:21:28 [Debug] pos=[XYZ: 499971.867014792/7.58518653333035/499982.049538504, YPR 0.5879489/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.5879489, pitch=0.00137978, flyVector=[x=0.00549350380825012, y=0.00137978050366332, z=0.00824121503935694]
12.5.2020 17:21:28 [Debug] pos=[XYZ: 499971.94476768/7.60471540269983/499982.166181413, YPR 0.5879489/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.5879489, pitch=0.00137978, flyVector=[x=0.00549350364572214, y=0.00137978046283274, z=0.00824121479545965]
12.5.2020 17:21:28 [Debug] pos=[XYZ: 499972.022522686/7.624244804155/499982.2828275, YPR 0.5879489/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.5879489, pitch=0.00137978, flyVector=[x=0.00549350345559218, y=0.00137978041508494, z=0.00824121451028992]
12.5.2020 17:21:28 [Debug] pos=[XYZ: 499972.100279317/7.64377461395604/499982.399476026, YPR 0.5879489/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.5879489, pitch=0.00137978, flyVector=[x=0.00549350373801246, y=0.00137978048601003, z=0.00824121493390405]
12.5.2020 17:21:28 [Debug] pos=[XYZ: 499972.178037198/7.66330473739804/499982.516126426, YPR 0.5879489/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.5879489, pitch=0.00137978, flyVector=[x=0.00549350382128279, y=0.00137978050691217, z=0.00824121505871126]
12.5.2020 17:21:28 [Debug] pos=[XYZ: 499972.255796037/7.68283510173838/499982.632778264, YPR 0.5879489/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.5879489, pitch=0.00137978, flyVector=[x=0.0054935034510873, y=0.00137978041392546, z=0.00824121450329075]
12.5.2020 17:21:28 [Debug] pos=[XYZ: 499972.333555612/7.70236565080502/499982.749431206, YPR 0.5879489/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.5879489, pitch=0.00137978, flyVector=[x=0.00549350395887504, y=0.00137978054146772, z=0.00824121526513306]
12.5.2020 17:21:28 [Debug] pos=[XYZ: 499972.411315753/7.72189634194141/499982.866084996, YPR 0.5879489/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.5879489, pitch=0.00137978, flyVector=[x=0.00549350387158249, y=0.00137978051953612, z=0.00824121513413993]
12.5.2020 17:21:28 [Debug] pos=[XYZ: 499972.489076328/7.74142714219148/499982.982739438, YPR 0.5879489/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.5879489, pitch=0.00137978, flyVector=[x=0.00549350387963359, y=0.0013797805215605, z=0.00824121514626088]
12.5.2020 17:21:28 [Debug] pos=[XYZ: 499972.566837237/7.76095802619954/499983.099394381, YPR 0.5879489/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.5879489, pitch=0.00137978, flyVector=[x=0.00549350351658893, y=0.00137978043037694, z=0.00824121460164237]
12.5.2020 17:21:28 [Debug] pos=[XYZ: 499972.605717791/7.77072349326381/499983.157722001, YPR 0.5879489/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.5879489, pitch=0.00137978, flyVector=[x=0.00549350380680184, y=0.00137978050326677, z=0.0082412150369727]
12.5.2020 17:21:28 [Debug] pos=[XYZ: 499972.722359761/7.80001997184092/499983.332705326, YPR 0.5879489/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.5879489, pitch=0.00137978, flyVector=[x=0.00549350374912437, y=0.00137978048877265, z=0.00824121495041878]
12.5.2020 17:21:28 [Debug] pos=[XYZ: 499972.761240501/7.80978548538666/499983.391033225, YPR 0.5879489/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.5879489, pitch=0.00137978, flyVector=[x=0.00549350383625588, y=0.0013797805106492, z=0.00824121508109342]
12.5.2020 17:21:28 [Debug] pos=[XYZ: 499972.839002074/7.8293165362663/499983.507689164, YPR 0.5879489/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.5879489, pitch=0.00137978, flyVector=[x=0.00549350390319223, y=0.00137978052746025, z=0.00824121518152018]
12.5.2020 17:21:29 [Debug] pos=[XYZ: 499972.916763748/7.84884761269794/499983.624345255, YPR 0.5879489/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.5879489, pitch=0.00137978, flyVector=[x=0.00549350385044517, y=0.0013797805142149, z=0.00824121510242258]
12.5.2020 17:21:29 [Debug] pos=[XYZ: 499972.994525501/7.86837870872613/499983.741001464, YPR 0.5879489/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.5879489, pitch=0.00137978, flyVector=[x=0.00549350370077444, y=0.00137978047661837, z=0.00824121487786929]
12.5.2020 17:21:29 [Debug] pos=[XYZ: 499973.072287313/7.88790981969422/499983.857657762, YPR 0.5879489/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.5879489, pitch=0.00137978, flyVector=[x=0.00549350347203895, y=0.00137978041916519, z=0.00824121453471719]
12.5.2020 17:21:29 [Debug] pos=[XYZ: 499973.150049171/7.90744094195846/499983.974314127, YPR 0.5879489/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.5879489, pitch=0.00137978, flyVector=[x=0.00549350383993146, y=0.00137978051157072, z=0.00824121508665766]
12.5.2020 17:21:29 [Debug] pos=[XYZ: 499973.227811063/7.92697207308384/499984.090970545, YPR 0.5879489/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.5879489, pitch=0.00137978, flyVector=[x=0.00549350383902289, y=0.00137978051134415, z=0.00824121508526653]
12.5.2020 17:21:29 [Debug] pos=[XYZ: 499973.305572983/7.94650321108255/499984.207627005, YPR 0.5879489/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.5879489, pitch=0.00137978, flyVector=[x=0.00549350380224997, y=0.00137978050210707, z=0.00824121503015408]
12.5.2020 17:21:29 [Debug] pos=[XYZ: 499973.383334924/7.96603435433466/499984.324283495, YPR 0.5879489/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.5879489, pitch=0.00137978, flyVector=[x=0.00549350373620231, y=0.00137978048551061, z=0.00824121493101476]
12.5.2020 17:21:29 [Debug] pos=[XYZ: 499973.46109688/7.98556550157103/499984.44094001, YPR 0.5879489/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.5879489, pitch=0.00137978, flyVector=[x=0.0054935036459977, y=0.00137978046285588, z=0.00824121479567699]
12.5.2020 17:21:29 [Debug] pos=[XYZ: 499973.538858849/8.00509665179641/499984.557596542, YPR 0.5879489/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.5879489, pitch=0.00137978, flyVector=[x=0.00549350353570277, y=0.00137978043516638, z=0.0082412146302429]
12.5.2020 17:21:29 [Debug] pos=[XYZ: 499973.616620826/8.02462780422936/499984.674253088, YPR 0.5879489/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.5879489, pitch=0.00137978, flyVector=[x=0.00549350377919993, y=0.00137978049631723, z=0.00824121499547965]
12.5.2020 17:21:29 [Debug] pos=[XYZ: 499973.694382811/8.04415895848997/499984.790909644, YPR 0.5879489/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.5879489, pitch=0.00137978, flyVector=[x=0.00549350364392869, y=0.00137978046235491, z=0.00824121479258141]
12.5.2020 17:21:29 [Debug] pos=[XYZ: 499973.772144801/8.06369011411509/499984.907566209, YPR 0.5879489/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.5879489, pitch=0.00137978, flyVector=[x=0.00549350388114261, y=0.00137978052191997, z=0.00824121514830713]
12.5.2020 17:21:29 [Debug] pos=[XYZ: 499973.849906796/8.08322127091182/499985.024222781, YPR 0.5879489/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.5879489, pitch=0.00137978, flyVector=[x=0.00549350372712394, y=0.00137978048323908, z=0.00824121491724247]
12.5.2020 17:21:29 [Debug] pos=[XYZ: 499973.927668794/8.10275242855628/499985.140879357, YPR 0.5879489/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.5879489, pitch=0.00137978, flyVector=[x=0.00549350356129782, y=0.00137978044157057, z=0.00824121466842029]
12.5.2020 17:21:29 [Debug] pos=[XYZ: 499974.005430794/8.12228358671686/499985.257535937, YPR 0.5879489/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.5879489, pitch=0.00137978, flyVector=[x=0.00549350379649559, y=0.00137978050066373, z=0.00824121502133941]
12.5.2020 17:21:29 [Debug] pos=[XYZ: 499974.083192796/8.14181474539062/499985.37419252, YPR 0.5879489/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.5879489, pitch=0.00137978, flyVector=[x=0.00549350361805573, y=0.00137978045584025, z=0.00824121475354695]
12.5.2020 17:21:29 [Debug] pos=[XYZ: 499974.1609548/8.16134590439075/499985.490849105, YPR 0.5879489/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.5879489, pitch=0.00137978, flyVector=[x=0.00549350386007161, y=0.00137978051663688, z=0.00824121511665082]
12.5.2020 17:21:29 [Debug] pos=[XYZ: 499974.238716805/8.18087706376027/499985.607505692, YPR 0.5879489/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.5879489, pitch=0.00137978, flyVector=[x=0.00549350366993188, y=0.00137978046888474, z=0.00824121483139902]
12.5.2020 17:21:29 [Debug] pos=[XYZ: 499974.316478811/8.20040822333969/499985.72416228, YPR 0.5879489/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.5879489, pitch=0.00137978, flyVector=[x=0.00549350392112078, y=0.00137978053197046, z=0.00824121520821704]
12.5.2020 17:21:29 [Debug] pos=[XYZ: 499974.394240817/8.2199393832026/499985.84081887, YPR 0.5879489/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.5879489, pitch=0.00137978, flyVector=[x=0.00549350371948758, y=0.00137978048133828, z=0.00824121490582568]
12.5.2020 17:21:29 [Debug] pos=[XYZ: 499974.472002825/8.23947054320398/499985.95747546, YPR 0.5879489/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.5879489, pitch=0.00137978, flyVector=[x=0.00549350350654768, y=0.00137978042785432, z=0.00824121458642448]
12.5.2020 17:21:29 [Debug] pos=[XYZ: 499974.549764832/8.25900170313801/499986.074132051, YPR 0.5879489/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.5879489, pitch=0.00137978, flyVector=[x=0.00549350377058289, y=0.00137978049418669, z=0.00824121498267996]
12.5.2020 17:21:29 [Debug] pos=[XYZ: 499974.62752684/8.27853286314643/499986.190788642, YPR 0.5879489/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.5879489, pitch=0.00137978, flyVector=[x=0.00549350354749703, y=0.0013797804381413, z=0.00824121464795469]
12.5.2020 17:21:29 [Debug] pos=[XYZ: 499974.705288847/8.29806402312166/499986.307445232, YPR 0.5879489/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.5879489, pitch=0.00137978, flyVector=[x=0.00549350382713621, y=0.00137978050837028, z=0.00824121506740153]
12.5.2020 17:21:29 [Debug] pos=[XYZ: 499974.783050855/8.31759518320535/499986.424101823, YPR 0.5879489/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.5879489, pitch=0.00137978, flyVector=[x=0.00549350359231059, y=0.00137978044937049, z=0.00824121471511684]
12.5.2020 17:21:29 [Debug] pos=[XYZ: 499974.860812863/8.33712634327756/499986.540758414, YPR 0.5879489/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.5879489, pitch=0.00137978, flyVector=[x=0.00549350388890085, y=0.00137978052386698, z=0.00824121516004846]
12.5.2020 17:21:29 [Debug] pos=[XYZ: 499974.938574871/8.35665750348338/499986.657415006, YPR 0.5879489/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.5879489, pitch=0.00137978, flyVector=[x=0.0054935036405687, y=0.00137978046149338, z=0.00824121478756357]
12.5.2020 17:21:29 [Debug] pos=[XYZ: 499975.016336879/8.37618866369179/499986.774071598, YPR 0.5879489/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.5879489, pitch=0.00137978, flyVector=[x=0.00549350395595456, y=0.00137978054073304, z=0.00824121526082209]
12.5.2020 17:21:29 [Debug] pos=[XYZ: 499975.094098888/8.39571982405399/499986.890728191, YPR 0.5879489/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.5879489, pitch=0.00137978, flyVector=[x=0.00549350369227481, y=0.0013797804745155, z=0.00824121486538937]
12.5.2020 17:21:29 [Debug] pos=[XYZ: 499975.171860897/8.41525098442823/499987.007384784, YPR 0.5879489/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.5879489, pitch=0.00137978, flyVector=[x=0.00549350341098079, y=0.00137978040384613, z=0.00824121444326635]
12.5.2020 17:21:29 [Debug] pos=[XYZ: 499975.249622905/8.43478214458277/499987.124041376, YPR 0.5879489/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.5879489, pitch=0.00137978, flyVector=[x=0.00549350375183822, y=0.00137978048943969, z=0.00824121495454066]
12.5.2020 17:21:30 [Debug] pos=[XYZ: 499975.288503909/8.44454772464788/499987.182369672, YPR 0.5879489/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.5879489, pitch=0.00137978, flyVector=[x=0.00549350393140063, y=0.00137978053452394, z=0.00824121522380574]
12.5.2020 17:21:30 [Debug] pos=[XYZ: 499975.366265918/8.4640788849409/499987.299026264, YPR 0.5879489/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.5879489, pitch=0.00137978, flyVector=[x=0.00549350363394185, y=0.00137978045981193, z=0.008241214777484]
12.5.2020 17:21:30 [Debug] pos=[XYZ: 499975.444027926/8.48361004522019/499987.415682857, YPR 0.5879489/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.5879489, pitch=0.00137978, flyVector=[x=0.00549350366410001, y=0.00137978046738366, z=0.00824121482256093]
12.5.2020 17:21:30 [Debug] pos=[XYZ: 499975.521789935/8.50314120545067/499987.532339449, YPR 0.5879489/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.5879489, pitch=0.00137978, flyVector=[x=0.00549350369711409, y=0.00137978047568621, z=0.0082412148721516]
12.5.2020 17:21:30 [Debug] pos=[XYZ: 499975.599551943/8.52267236567042/499987.648996041, YPR 0.5879489/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.5879489, pitch=0.00137978, flyVector=[x=0.00549350373299815, y=0.00137978048469923, z=0.00824121492613705]
12.5.2020 17:21:30 [Debug] pos=[XYZ: 499975.677313952/8.54220352591101/499987.765652633, YPR 0.5879489/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.5879489, pitch=0.00137978, flyVector=[x=0.00549350377176865, y=0.00137978049441849, z=0.00824121498420261]
12.5.2020 17:21:30 [Debug] pos=[XYZ: 499975.75507596/8.56173468619902/499987.882309225, YPR 0.5879489/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.5879489, pitch=0.00137978, flyVector=[x=0.00549350381344499, y=0.00137978050485473, z=0.00824121504652725]
12.5.2020 17:21:30 [Debug] pos=[XYZ: 499975.832837969/8.5812658465572/499987.998965818, YPR 0.5879489/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.5879489, pitch=0.00137978, flyVector=[x=0.00549350385785835, y=0.00137978051603333, z=0.00824121511332334]
12.5.2020 17:21:30 [Debug] pos=[XYZ: 499975.910599978/8.60079700700543/499988.115622412, YPR 0.5879489/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.5879489, pitch=0.00137978, flyVector=[x=0.00549350390541049, y=0.00137978052799452, z=0.00824121518484481]
12.5.2020 17:21:30 [Debug] pos=[XYZ: 499975.988361988/8.62032816756152/499988.232279006, YPR 0.5879489/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.5879489, pitch=0.00137978, flyVector=[x=0.0054935034803916, y=0.00137978042124375, z=0.00824121454734072]
12.5.2020 17:21:30 [Debug] pos=[XYZ: 499976.066123997/8.63985932794057/499988.348935599, YPR 0.5879489/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.5879489, pitch=0.00137978, flyVector=[x=0.00549350351374568, y=0.00137978042962668, z=0.00824121459748635]
12.5.2020 17:21:30 [Debug] pos=[XYZ: 499976.143886005/8.65939048812288/499988.465592191, YPR 0.5879489/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.5879489, pitch=0.00137978, flyVector=[x=0.00549350355399025, y=0.00137978043976799, z=0.00824121465809875]
12.5.2020 17:21:30 [Debug] pos=[XYZ: 499976.221648013/8.67892164818614/499988.582248782, YPR 0.5879489/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.5879489, pitch=0.00137978, flyVector=[x=0.0054935036013822, y=0.00137978045165469, z=0.00824121472908689]
12.5.2020 17:21:30 [Debug] pos=[XYZ: 499976.299410021/8.69845280819574/499988.698905372, YPR 0.5879489/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.5879489, pitch=0.00137978, flyVector=[x=0.00549350365571231, y=0.00137978046532672, z=0.00824121481086885]
12.5.2020 17:21:30 [Debug] pos=[XYZ: 499976.377172028/8.71798396820773/499988.815561963, YPR 0.5879489/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.5879489, pitch=0.00137978, flyVector=[x=0.00549350371756774, y=0.0013797804808808, z=0.00824121490369372]
12.5.2020 17:21:30 [Debug] pos=[XYZ: 499976.454934036/8.73751512827124/499988.932218554, YPR 0.5879489/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.5879489, pitch=0.00137978, flyVector=[x=0.00549350378740443, y=0.00137978049847875, z=0.00824121500880268]
12.5.2020 17:21:30 [Debug] pos=[XYZ: 499976.532696044/8.7570462884306/499989.048875146, YPR 0.5879489/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.5879489, pitch=0.00137978, flyVector=[x=0.0054935038664861, y=0.00137978051836177, z=0.00824121512750543]
12.5.2020 17:21:30 [Debug] pos=[XYZ: 499976.610458053/8.77657744872716/499989.165531739, YPR 0.5879489/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.5879489, pitch=0.00137978, flyVector=[x=0.00549350355172966, y=0.00137978043929493, z=0.00824121465521468]
12.5.2020 17:21:30 [Debug] pos=[XYZ: 499976.688220061/8.79610860894507/499989.282188331, YPR 0.5879489/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.5879489, pitch=0.00137978, flyVector=[x=0.00549350362181073, y=0.00137978045692168, z=0.00824121476042464]
12.5.2020 17:21:30 [Debug] pos=[XYZ: 499976.765982069/8.81563976908631/499989.398844922, YPR 0.5879489/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.5879489, pitch=0.00137978, flyVector=[x=0.00549350370935442, y=0.00137978047885702, z=0.00824121489141162]
12.5.2020 17:21:30 [Debug] pos=[XYZ: 499976.843744077/8.8351709292375/499989.515501514, YPR 0.5879489/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.5879489, pitch=0.00137978, flyVector=[x=0.00549350381715756, y=0.0013797805059074, z=0.00824121505295354]
12.5.2020 17:21:30 [Debug] pos=[XYZ: 499976.921506085/8.85470208948134/499989.632158106, YPR 0.5879489/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.5879489, pitch=0.00137978, flyVector=[x=0.00549350395062631, y=0.00137978053935028, z=0.0082412152529501]
12.5.2020 17:21:30 [Debug] pos=[XYZ: 499976.999268095/8.87423324990136/499989.748814699, YPR 0.5879489/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.5879489, pitch=0.00137978, flyVector=[x=0.00549350375801693, y=0.00137978049102091, z=0.00824121496466047]
12.5.2020 17:21:30 [Debug] pos=[XYZ: 499977.077030104/8.89376441036051/499989.75, YPR 0.5879489/0.00137978/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.5879489, pitch=0.00137978, flyVector=[x=0.00487530184939902, y=0.001224509288892, z=0.00864476744361797]
12.5.2020 17:21:30 [Debug] pos=[XYZ: 499977.153234163/8.91290426695802/499989.75, YPR 0.5134978/0.001224509/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.5134978, pitch=0.001224509, flyVector=[x=0.00417356544880134, y=0.00104825707583365, z=0.00902676605863443]
12.5.2020 17:21:30 [Debug] pos=[XYZ: 499977.22599906/8.93118032336232/499989.75, YPR 0.4330803/0.001048257/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.4330803, pitch=0.001048257, flyVector=[x=0.00341884026478509, y=0.000858695890324886, z=0.00935810729152854]
12.5.2020 17:21:30 [Debug] pos=[XYZ: 499977.293682862/8.94818018243215/499989.75, YPR 0.3502701/0.0008586957/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.3502701, pitch=0.0008586957, flyVector=[x=0.00264650119627271, y=0.000664710698738685, z=0.00962050905334232]
12.5.2020 17:21:30 [Debug] pos=[XYZ: 499977.354939941/8.96356586823604/499989.75, YPR 0.2684494/0.0006647106/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.2684494, pitch=0.0006647106, flyVector=[x=0.00189678559024564, y=0.000476407748132044, z=0.00980689792236184]
12.5.2020 17:21:30 [Debug] pos=[XYZ: 499977.408780711/8.97708883046724/499989.75, YPR 0.1910544/0.0004764077/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.1910544, pitch=0.0004764077, flyVector=[x=0.00120680504974987, y=0.000303108205363451, z=0.00992228501026616]
12.5.2020 17:21:30 [Debug] pos=[XYZ: 499977.454613346/8.98860042287253/499989.75, YPR 0.1210313/0.0003031082/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.1210313, pitch=0.0003031082, flyVector=[x=0.00060398082430248, y=0.000151699351837017, z=0.00998059073644314]
12.5.2020 17:21:31 [Debug] pos=[XYZ: 499977.492248991/8.99805321140388/499989.75, YPR 0.06044183/0.0001516994/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.06044183, pitch=0.0001516994, flyVector=[x=0.000103340916780714, y=2.59557084606737E-05, z=0.0099994325959783]
12.5.2020 17:21:31 [Debug] pos=[XYZ: 499977.521867087/9.00549226539418/499989.775199885, YPR 0.01033431/2.595571E-05/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=0.01033431, pitch=2.595571E-05, flyVector=[x=-0.000301552316338204, y=-7.57396408908996E-05, z=0.00999516528272211]
12.5.2020 17:21:31 [Debug] pos=[XYZ: 499977.533764677/9.00848053336763/499989.798360984, YPR -0.03016067/-7.573964E-05/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=-0.03016067, pitch=-7.573964E-05, flyVector=[x=-0.000480634506686624, y=-0.000120718969919489, z=0.00998771369264211]
12.5.2020 17:21:31 [Debug] pos=[XYZ: 499977.55211222/9.01308880960553/499989.861606566, YPR -0.04808548/-0.000120719/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=-0.04808548, pitch=-0.000120719, flyVector=[x=-0.000813426579367587, y=-0.000204304970766039, z=0.00996476805766648]
12.5.2020 17:21:31 [Debug] pos=[XYZ: 499977.563779219/9.01601916126915/499989.942942404, YPR -0.08144967/-0.000204305/0], target=[x=499977.5, y=9, z=499990.5], roll=0, yaw=-0.08144967, pitch=-0.000204305, flyVector=[x=-0.00113703514859131, y=-0.00028558438915516, z=0.00993104136775995]
12.5.2020 17:21:37 [Debug] AiTaskPerch.FinishExecute()

 

  • Like 1
Link to comment
Share on other sites

I think I figured this out. I need to set the habitat to Air, otherwise gravity(?) occasionally pulls my bird down. But then when the bird is sitting on the post, I need to switch it back to Land so that gravity works as it's intended. It would be simpler is the IsFlying flag handles that for critters with Air environment, but this is certainly enough for me to move forward.

  • Like 1
Link to comment
Share on other sites

  • 4 months later...
Quote

// There's a difference between travel yaw/pitch and the display yaw/pitch.

I would assume: inertia? This way you can accurately display a moving object following a trajectory with its inertia.
Your bird could do with some inertia calcs. But dont get me wrong, I seriously love your bird. I know you were debugging, but man, that cracked me up! Have you solved the problem?

Suggestion:
After the bird found its new destination, have the bird first turn, look (1s) and than go off into the direction
-- > would give players "that moment" to hunt them (so gameplay wise maybe even 1.5s, 2s?) and it would also look more realistic


Thanks and keep going :) it is a great idea!
 

Edited by dot
Link to comment
Share on other sites

I lost steam working on this project, but if anybody is interested in continuing it, my work in progress is at https://github.com/rtwfroody/vsbirds.

Basically a crow will go to a random spot, caw a bit, and repeat. In actual gameplay you don't see it very often since it's usually hidden by foliage. That makes sense, but it's also not very satisfying. Maybe I'll get back to it some day, but I haven't even played VS since the new release came out.

Link to comment
Share on other sites

Arnt you underestimating the impact? If this works smoothly we could expand it for e.g. ducks/seaguls (only from water to water) or larger birds that you do see, even enemy creatures flying (big vultures or some crazy flying mob) etc...
It adds a whole new dynamic to the game: combat with flying entities!

Link to comment
Share on other sites

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.