Posted on Aug 13, 2007
20:50, back from work, thanks Ubisoft for the diner.
Ok I just wanted to do a quick post about my troubles at work today. I spent my whole day trying to figure out a way to fix a glitch, pretty serious one actually. As I already told you, I'm working on the Horse behavior. I got to fix a nasty bug concerning the horse and its rider. As you would have imagined, when mounting on the horse, the player loses control of the main character and now controls the horse itself. The main character is "just" put on top of the horse and everything should be fine. But I found out that the character is not directly linked / tied to the horse, it's being manually replaced on the saddle using the saddle bone. The problem is that the rider seems to be adjusted BEFORE updating the full skeleton of the horse, which means that when the the code responsible for replacing the rider requests the position of the saddle bone, it seems to receive the position of the bone OF THE PREVIOUS frame...
Let's try to put it in a simpler way (for my mom :p). The rider is always late behing the horse. When the framerate is high (the game is running perfectly smoothly), the difference of position of the saddle between two frames is very short, you can't really that the rider is late. But when the framerate drops even a little, this difference starts to become very noticeable and in the worst cases the rider can actually be seen sitting on the butt of the horse, or even worse, next to the horse when turning !
Damn I hate bone physics and this kind of stuff...
I hope I'll be able to find a way to hack that bug away tomorrow.
See you all.
Here's something to end this post on a lighter note:
Loading comments...