Interior Vehicals
by Jason Chadwick · in Constructor · 06/21/2009 (3:32 am) · 6 replies
Is it possible to use the same technique as making a house ( portals etc ) but when in game, use them as vehicals.
I wish to make a transport vehical as a interior using a portal at the door etc but i wanted to make it move about like a car. It doesn't require animation if that wouls cause a problem.
Plus, how can I make an interior that if the terrain 'cuts' into the models, the terrain doesnt exist inside the building. I have seen this work in a number of models but when I make my own, the terrain will ALWAYS show on the inside, no matter what I do.
I wish to make a transport vehical as a interior using a portal at the door etc but i wanted to make it move about like a car. It doesn't require animation if that wouls cause a problem.
Plus, how can I make an interior that if the terrain 'cuts' into the models, the terrain doesnt exist inside the building. I have seen this work in a number of models but when I make my own, the terrain will ALWAYS show on the inside, no matter what I do.
About the author
#2
For your last question there's an option in the editor for deleting a section of terrain. If you had the source I could point you to a great resource for TGEa that allows you to set up trigger areas that would hide and also allow movement through the terrain.
06/21/2009 (8:55 am)
You can use script to move an interior, but you wont maintain collision with it while it moves. It will take some script hackery/trickery to overcome that as well as the "how do you steer it" problem. The in-game generated lightmaps won't move with it either. Much better overall to just create a .dts object with the required vehicle nodes and vehicle datablock.For your last question there's an option in the editor for deleting a section of terrain. If you had the source I could point you to a great resource for TGEa that allows you to set up trigger areas that would hide and also allow movement through the terrain.
#3
06/21/2009 (10:01 am)
Sorry I didnt say before hand Im using TGE 1.5
#4
06/21/2009 (11:42 am)
Its the same for all engines. Interiors were not made to be mobile. You can move them, but it would be better to use a dts model. If you want, say a bus, where the passengers can get in and "Ride" along, as in, they can walk around while the bus is in motion, I'd suggest using Raman-Sama's "platforms players can ride on" resource with a vehicle model. You will have to make code changes to merge it with a vehicle code, but it is doable.
#5
06/22/2009 (2:32 am)
nice one thanks for that people. Also whilst here, can portals not be sued with a dts model? cos as I see constructor only exports in DIF
Torque Owner Josiah Reeves
For the second, yes it is possible; it doesn't have anything to do with the model itself though. Use the Terrain Painter in torque; under Actions there is a selection for "Set Empty" click this then brush onto the terrain you don't want. This is how I would do it, as far as I know there is no other way.