Repeating world
by Adam Beaumont · in Torque Game Engine · 09/19/2003 (6:55 am) · 3 replies
I've been trying to find out if anyone has looked at implementing a repeating world feature in Torque. What I mean by this is if u start off in the middle of the world (map / terrain) and walk in any direction then u get back to where u started. i.e. the world wraps round and if u walk off one side of the map you appear again on the opposite side. Also, if you are in the north of the map looking north then u will see objects in the southern part of the map.
Having had a (very) quick think about this I assume u can do this by :-
- effectively teleporting objects if they move outside the map boundary
- tweaking the rendering visibility check so that it does an additional wrap around check
- mucking about with collision detection near the map boundary
Just wondering if anyone else has already looked at this (or maybe its possible already?). I've had a fairly good trawl through the forums but tbh most people seem to want to do the opposite and make the world more expansive!
Adam
Having had a (very) quick think about this I assume u can do this by :-
- effectively teleporting objects if they move outside the map boundary
- tweaking the rendering visibility check so that it does an additional wrap around check
- mucking about with collision detection near the map boundary
Just wondering if anyone else has already looked at this (or maybe its possible already?). I've had a fairly good trawl through the forums but tbh most people seem to want to do the opposite and make the world more expansive!
Adam
#2
09/19/2003 (8:02 am)
@Robert - yeah that sounds like a good way to handle the teleporting. But presumably u had things 'popping' into view after the settransform call ?
#3
09/19/2003 (9:54 am)
The demos seem to wrap? if i turn on the editor and steer the camera by that, it seems to come back around to the same area? it looks like it will also let you mirror terrain versus just wrapping? i haven't played with it
Torque Owner Robert Brower