Skip to content

Added missing prediction of rotation similar to the translative predictions#182

Open
cb3hjb wants to merge 2 commits intoTheHellBox:masterfrom
cb3hjb:master
Open

Added missing prediction of rotation similar to the translative predictions#182
cb3hjb wants to merge 2 commits intoTheHellBox:masterfrom
cb3hjb:master

Conversation

@cb3hjb
Copy link
Copy Markdown

@cb3hjb cb3hjb commented Apr 2, 2026

KissMP works, the force stil works, it probably does something

@TheHellBox
Copy link
Copy Markdown
Owner

TheHellBox commented Apr 3, 2026

The reason rotation is not predicted is because it's not exactly needed to be done. Linear prediction is required, because with a ping of 100ms, at 10 m/s, there's a 1m lag. Rotations are much slower than that, so extrapolating that data wouldn't compensate for much errors. And compared to speed, rotations change suddenly and quickly (Snap oversteer for example), so the prediction is very likely to be working in the wrong direction and creating the error instead of compensating for it

@cb3hjb
Copy link
Copy Markdown
Author

cb3hjb commented Apr 3, 2026

Would it make sense to calculate the change of acceleration in the translative direction?

Assuming that a car can rotate at the speed of 100 °/s (3,6s for full rotation) the possible error at the tip of the vehicle could be:

100 °/s * 0,1s = 10 °/s

(2*pi*r* degree°)/360° = arc length

(2*pi*2 m *10°)/ 360° = **0.349 m**

The sine ans cosine are avoidable which would make this less computationally expensive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants