Moving interior
by Skylar Kelty · in Torque Game Engine · 06/25/2006 (3:26 am) · 9 replies
Hi,
Im having huge problems moving interiors.
I would like a wall segment to move down when it is destroyed, I can do the destruction code but I cant get it too move the interior down.
I suppose i need to use gettransform or something similar.
How can I move interiors?
Thanks
Im having huge problems moving interiors.
I would like a wall segment to move down when it is destroyed, I can do the destruction code but I cant get it too move the interior down.
I suppose i need to use gettransform or something similar.
How can I move interiors?
Thanks
About the author
#2
The way I understand it, the main benefits of interiors are possible because they are static entities -- baked-in (precalculated) lighting and collison especially. Introducing dynamic behavior on your .DIFs may have unwanted implications. Having said that, look for pathed interiors and some of the stuff that Matt Fairfax has been doing. Also, you might take a look at the stuff that Jason Davis and Ramen Sama (among others) have been working on.
Aaron E.
P.S. SetTransform is your friend. ;)
06/25/2006 (3:38 am)
Hello,The way I understand it, the main benefits of interiors are possible because they are static entities -- baked-in (precalculated) lighting and collison especially. Introducing dynamic behavior on your .DIFs may have unwanted implications. Having said that, look for pathed interiors and some of the stuff that Matt Fairfax has been doing. Also, you might take a look at the stuff that Jason Davis and Ramen Sama (among others) have been working on.
Aaron E.
P.S. SetTransform is your friend. ;)
#3
@ Aaron - Thanks, ill look at what they've done and post here when im stuck again ;) BTW: I dont know how to use settransform
06/25/2006 (6:49 am)
@Peter - Its not easy to convert a dts to a dif, if it was then 90% of the problems stopping my game from being released would be gone@ Aaron - Thanks, ill look at what they've done and post here when im stuck again ;) BTW: I dont know how to use settransform
#4
Check out this thread for some really cool ideas . . .
www.garagegames.com/mg/forums/result.thread.php?qt=44667
Also, for a very simple example of settransform, take a look at this . . .
Of course, you might need to define a few things to go along with it, but this should be a start.
Aaron E.
06/25/2006 (7:15 am)
Hi,Check out this thread for some really cool ideas . . .
www.garagegames.com/mg/forums/result.thread.php?qt=44667
Also, for a very simple example of settransform, take a look at this . . .
%myPlatformLoc = %myplatform.getPosition(); %player.setTransform(%myPlatformLoc);
Of course, you might need to define a few things to go along with it, but this should be a start.
Aaron E.
#5
06/25/2006 (7:29 am)
Thanks, ill take a look at Jason Davis' stuff
#6
06/25/2006 (8:00 am)
I've almost got this working, but whats the name for an interior in a datablock? InteriorInstance is the mission object
#7
06/25/2006 (12:16 pm)
How did GG do it in the editors? I cant find it
#8
06/25/2006 (1:38 pm)
You will need to define a name for it somewhere in your script. I doubt that Matt F. or anyone at GG was able to do moving interiors in the editors alone. There was some source code hacking, to be sure. I would love to see what makes it tick.
#9
06/26/2006 (8:03 am)
I mean like shapes are StaticShapeData, but I don't think there is a datablock name for interiors (has to be in-engine not script btw) I am going to have to pay someone to do this, it is beyond me :(
Torque 3D Owner Peter Simard
Default Studio Name