I was talking with a guy at work about object oriented coding, and he mentioned that it was not a good idea to use too long references to an object. In my current code I'm doing things like this.
hero.pre.t.x
Where hero is the character, pre is a transform object containing the previous position of the hero, t is translation stored as a vector object, and x is the axis. Is this bad code, or is it just fine.
And what if you do the same, but run a method in there as well, like...
hero.t.Distance( enemy.t )
Ragnar
hero.pre.t.x
Where hero is the character, pre is a transform object containing the previous position of the hero, t is translation stored as a vector object, and x is the axis. Is this bad code, or is it just fine.
And what if you do the same, but run a method in there as well, like...
hero.t.Distance( enemy.t )
Ragnar