[DiscordArchive] Lacks interpolation ?
[DiscordArchive] Lacks interpolation ?
Archived author: Saty • Posted: 2025-06-12T18:04:30.387000+00:00
Original source
But I tried other lerps too, all the same jitter
Archived author: Saty • Posted: 2025-06-12T18:05:31.583000+00:00
Original source
I did try to multiply by the parents rotation, which removed the jitter but obviously made all the rotation really wonky and wrongly aligned
That's why I think it's option b.
Archived author: Saty • Posted: 2025-06-12T18:07:19.125000+00:00
Original source
But I would need a quaternion wizard to help me with that.
Quaternions are black magic to me.
Archived author: Saty • Posted: 2025-06-12T18:12:31.452000+00:00
Original source
lol nvm, as a last resort I tried AI.
It fixed it first try.
Archived author: Titi • Posted: 2025-06-12T18:12:45.787000+00:00
Original source
might be something with not resetting to timestamp 0 properly when at the last timestamp or something
Archived author: Saty • Posted: 2025-06-12T18:13:28.744000+00:00
Original source
Problem was I was taking the translation interpolation instead of rotation. Dumb mistake.
It also then spit out these magic words:
`Quaternions have a double-cover property: q and -q represent the same rotation, but interpolating between them can cause the shortest-path interpolation to "flip" if the dot product is negative. This can cause visible jitter.`
Which was fixed with
```
if (Quaternion.Dot(start, end) < 0f)
{
end = new Quaternion(-end.x, -end.y, -end.z, -end.w);
}
```
Archived author: Titi • Posted: 2025-06-12T18:14:15.945000+00:00
Original source
praise our AI overlord, no clue what's any of that
Archived author: Saty • Posted: 2025-06-12T18:14:41.229000+00:00
Original source
Me neither but it fixed it.
Usually never trust AI, but this time, good job lil overlord
Archived author: Titi • Posted: 2025-06-12T18:14:50.983000+00:00
Original source
it's pretty good at maths
Archived author: tester • Posted: 2025-06-12T18:15:25.481000+00:00
Original source
it knows all the animation stuffs