thats what i thought at first as well but the error im getting is in this line of code in a different function
TranslateEntity this\Model,this\Velocity\x,this\Velocity\y,this\Velocity\z
...and how is the var 'this' defined in that function? Is it passed in as a param? You dont have 'this' defined alsewhere as a global, do you?
Also, can you show us how all the relevant Types are defined, please. :)