Mount Movement Problem: strange behaivor
Posted: Fri Oct 30, 2009 5:51 pm
I couldn't find the post where we shortly discussed about.
I did some debuging and try to compare the behaivor with mount and without. Without everything is ok in player:moveto(). But if I use the mount, it seems asdid not work anymore. It seems as it will be reseted !!?? The camera view jumps around ...
I did a 'self:faceDirection(angle)', print out the 'self.Direction', wait for 1000 ms, and print out the 'self.Direction' again and the value is changed back to the old value/direction???that gave the output:I don't know what to do?
I did some debuging and try to compare the behaivor with mount and without. Without everything is ok in player:moveto(). But if I use the mount, it seems as
Code: Select all
self:faceDirection(angle);
I did a 'self:faceDirection(angle)', print out the 'self.Direction', wait for 1000 ms, and print out the 'self.Direction' again and the value is changed back to the old value/direction???
Code: Select all
cprintf(cli.turquoise, "vor Korrektur 02: um angle %s, von self.dir %s\n",angle,self.Direction);
self:faceDirection(angle);
camera:setRotation(angle);
self:update();
cprintf(cli.turquoise, "nach Korrektur 02a: Angle %s, self.dir %s\n",angle,self.Direction);
yrest(1000);
self:update();
cprintf(cli.turquoise, "nach Korrektur 02b: Angle %s, self.dir %s\n",angle,self.Direction);
self:faceDirection(angle);
camera:setRotation(angle);
self:update();
cprintf(cli.turquoise, "nach Korrektur 02c: Angle %s, self.dir %s\n",angle,self.Direction);
Code: Select all
vor Korrektur 02: um angle -1.2409520034654, von self.dir 2.2327116241782
nach Korrektur 02a: Angle -1.2409520034654, self.dir -1.2409520011077
nach Korrektur 02b: Angle -1.2409520034654, self.dir 2.2327116241782
nach Korrektur 02c: Angle -1.2409520034654, self.dir -1.2409520011077