Unused mAnchorPoint in Player class
by Eric Roberts · in Torque Game Engine · 01/06/2006 (2:25 pm) · 4 replies
Not too much of a biggy, but something a little confusing nontheless. The mAnchorPoint in the Player definition in player.cc has a member mAnchorPoint that is not used anywhere else in the code.
I'm not sure what the comment "Pos compression anchor" means beside it. But other than simply showing up with an initialization right in the beginning of the constructor of the Player class it seems to serve no useful purpose.
- Eric
I'm not sure what the comment "Pos compression anchor" means beside it. But other than simply showing up with an initialization right in the beginning of the constructor of the Player class it seems to serve no useful purpose.
- Eric
About the author
#2
I took the stock Torque code, commented out mAnchorPoint from the player defintion, and got rid of it's assignment in the constructor. Built fine.
I ran the FPS demo and I can find no adverse side effects.
But seriously - is this a trick question?
If you grep/find in files for mAnchorPoint it only shows up in two lines, in the definition of the Player class and in the constructor. How could it possibly have any effect on any other part of the program? Famous last words?
- Eric
01/08/2006 (12:33 pm)
Is this a trick question? :)I took the stock Torque code, commented out mAnchorPoint from the player defintion, and got rid of it's assignment in the constructor. Built fine.
I ran the FPS demo and I can find no adverse side effects.
But seriously - is this a trick question?
If you grep/find in files for mAnchorPoint it only shows up in two lines, in the definition of the Player class and in the constructor. How could it possibly have any effect on any other part of the program? Famous last words?
- Eric
#3
01/08/2006 (4:44 pm)
If you can delete it and nothing complains then you're usually fine. :) Demolition order #1089.
Associate Kyle Carter