Terrain
by Alexis Brown · in Torque Game Engine Advanced · 09/07/2006 (9:17 pm) · 4 replies
If I have 2 AtlasInstance2 objects in a mission with one rotated 180 degrees to create a roof shouldn't I collide with it? I can walk on and collide with the bottom terrain but not the rotated one. Perhaps I'm abusing the terrain engine ;)
#2
importOldAtlasCHU("MyGame/hf.chu", "MyGame/geometry.atlas");
atlasGenerateTextureTOCFromTiles( 16, "MyGame/testterrain/texture_x%dy%d", "MyGame/texture.atlas", 1 );
atlasGenerateUniqueTerrain("starter.fps/test.atlas", "MyGame/geometry.atlas", "MyGame/texture.atlas");
mission file:
new AtlasInstance2(NewTerrain) {
position = "0 0 66.8";
rotation = "1 0 0 0";
scale = "1 1 1";
detailTex = "~/data/terrains/details/detail1";
atlasFile = "~/test.atlas";
};
new AtlasInstance2(NewTerrain2) {
position = "0 1024 180";
rotation = "1 0 0 180";
scale = "1 1 1";
detailTex = "~/data/terrains/details/detail1";
atlasFile = "~/test.atlas";
};
09/08/2006 (12:40 am)
AtlasOldGenerateChunkFileFromRaw16("MyGame/testterrain/hf.RAW", 1024, 1.0, 1.0/400, "MyGame/hf.chu", 1, 4);importOldAtlasCHU("MyGame/hf.chu", "MyGame/geometry.atlas");
atlasGenerateTextureTOCFromTiles( 16, "MyGame/testterrain/texture_x%dy%d", "MyGame/texture.atlas", 1 );
atlasGenerateUniqueTerrain("starter.fps/test.atlas", "MyGame/geometry.atlas", "MyGame/texture.atlas");
mission file:
new AtlasInstance2(NewTerrain) {
position = "0 0 66.8";
rotation = "1 0 0 0";
scale = "1 1 1";
detailTex = "~/data/terrains/details/detail1";
atlasFile = "~/test.atlas";
};
new AtlasInstance2(NewTerrain2) {
position = "0 1024 180";
rotation = "1 0 0 180";
scale = "1 1 1";
detailTex = "~/data/terrains/details/detail1";
atlasFile = "~/test.atlas";
};
#3
09/08/2006 (3:47 am)
You can't walk on it from the upside down side, but the above head 'roof' aspect should work fine collision wise. I used dual atlas's to create a nice cave awhile ago. Projectiles blew up at the roof level just fine.
#4
09/08/2006 (7:49 am)
I want to do a cave too which is why I tried this. I lowered the upside down one so that it intersects with the botom one and I found I could walk through it. I would have thought that at least my feet would get stuck or if I was lucky my head would bounce off of the ceiliing. no such luck. I think I will have to use something else as a wall.
Torque Owner Vincent BILLET
Default Studio Name