Game Development Community

Client Coordinates, again

by David Wilson · in Torque Game Engine · 03/28/2004 (3:33 pm) · 1 replies

I've found references to "getRender" in different threads here when the subject of showing a client their X,Y coordinates comes up. I don't really know where or how I should use this. Can anyone dumb it down for me?

Maybe to take a different route, would it make sense to use a .png image for the map, with a dot representing the player, and showing the player the coordinates of that dot on the image, as their "in game" coordinates?

Just a thought.

Thanks!

#1
03/28/2004 (9:24 pm)
Basically, Torque keeps track of two transforms for each object, the "real" transform and the "render" transform. Internally Torque simulates the world at a fixed 32hz. This has some nice characteristics for stable simulation, but if your framerate is over 32 things can move jerkily. Thus, it does interpolation at frame rate, using the render transforms.

So the normal transform is the object's real transform and it may be a bit jerky, while the render transform is guaranteed to be smooth.