Self.pos question


I thought that the pos property had only x and y coordinates. Was I just overlooking the ‘z’? Or has it changed?
Also, when I hover over self.velocity, the info box mentions documentation. How do I find that?


There was always a z-coordinate, you just don’t need it. Certain objects are higher than 1, and need to be placed at a higher height to not cause problems.

The z-coordinate also changes when you fly in the air (for example by a firetrap) or jump.

I don not know any scenario where you actually need the z-coordinate for anything. In a more advanced strategy for multiplayer you could find out whether an enemy is jumping (at you?), but that is only minor useful in my opinion.