Not logged inOpenClonk Forum
Up Topic [Script Question] SetVelocity()

This board is threaded (i.e. has a tree structure). Please use the Reply button of the specific post you are referring to, not just any random button. If you want to reply to the topic in general, use the Post button near the top and bottom of the page.

Post Reply
In Response to Günther

> I don't know what this line actually is supposed to do, but imo it can be removed.


It was essentially added by Sven2 in 2004 with the message "+ Bottom-adjusted WALK-procedure; rotated, attached movement". (I've later touched it in 2008 when I made C4Object store its position only in C4Fixed instead of C4Fixed plus an integer, but didn't change the behaviour then. Or perhaps I accidentally did - I'm not going to go over that code again to find out whether Sven2's code managed to avoid rounding.) In the meantime, we've polished the code above not to carelessly round an object's position. The rotation code should simply get the same treatment.

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill