Jump to content

Trajectory wobble bug - potential explanation (KSP 1.0.4)


Recommended Posts

Prefix was required - In reality prefix is [ALL OS - Game Bug]

I apologise in advance if this is a dupe report.

I am sure a lot of people experienced an issue, when patched conics trajectory wobbles at warp x1. (in some cases predicted trajectory will wobble by hundreds of kilometres if multiple gravity assists are involved).

I believe this is caused by the fact that the trajectory prediction is made by using the currently active probe/pod COM, rather than the entire craft's COM. Any rotation or vibration in the craft will add ~0.01 to 0.1m/s to the probe's COM and alter the predicted trajectory.

The way to check is to get one of those "wobble" orbits and let your craft rotate freely in one direction (SAS off). You will notice that the wobble will repeat itself with the same frequency as the craft's rotation. The wobble will also immediately stop if you warp 5x. If you unwarp back to physics the wobble will be a lot lower or completely gone. (either FP errors or inherent wobble of clipped/large part craft, these errors cause significantly lower wobble and are not considered in this report).

I am not sure if images would help here, I will try to create a twitch highlight showing the issue ASAP if required.

Suggested fix is to calculate trajectory from the craft's COM rather than the control part's COM.

xJ.

Link to comment
Share on other sites

As I understand it, trajectory is now calculated from the CoM rather than the root part as it was previously, which has greatly reduced wobble. There is still some due to floating point errors. Mentioned in the changelog for 1.0.3: "* Better compute various vessel values This should lower phantom orbit changing and wobble!"

Edited by Red Iron Crown
Link to comment
Share on other sites

That is a good point Red Iron, but unfortunately it does not appear to be the case! Unless FP errors go "into the direction" of where the craft is rotating.

What I mean is that I could start yawing my craft one way - the Duna Peri would go from 80 to 35km (for example). If I roll it the other way, Duna peri would go up to ~120km. This is of course only temporarily - as soon as the craft rotates past 90 degrees the trajectory proceeds changing.

Unfortunately the effect seems to be too pronounced for it to be just an FP issue.

Either I am misunderstanding and this is indeed caused by FP errors, or the COM calculation currently has a bug.

I will do a stream highlight showing this issue in ~2 weeks (unable to stream right now)

Link to comment
Share on other sites

It's definitely a known thing that I don't think has been resolved. I have some additional theories about wobbly orbits, but it sounds like your harmonic changes are pointing at CoM issues still.

Cheers,

-Claw

Link to comment
Share on other sites

Here is a video link showing the bug.

I claim that the tiny variations in the Pe values are to do with FP bug, and while I do think that it is partly to do with FP errors, I also think that it is further caused by SAS being turned on (but that is irrelevant to the actual bug where the orbit goes WHOOOSH around Jool)

http://www.twitch.tv/xjammer_/c/7000275

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...