Game Development Community

Moving Difs in-game

by Jeff Trier · in Torque Game Engine · 03/14/2003 (6:19 am) · 3 replies

As I was positioning an Interior Shape in Torque (which I made in QuArk), I had a thought...

Since there is no relighting involved when moving this object, and it's moveable in the game editor, can it be moved via script?

Moving Difs via script would provide a solution to one of my gameplay ideas.


Thanks,
-Jeff

About the author

Originally a Classical/Metal musician, I've always been attracted to anything involving computers, including: Networking, PC Building and Repair, software design and coding. I've been involved with game design and development for over 10 years.


#1
03/14/2003 (6:34 am)
Dif shapes _do_ require relights when they're moved... they cast shadows on the terrain.
#2
03/14/2003 (6:34 am)
Since InteriorInstance is a child of SceneObject, I guess you could move it with the console command setTransform().
#3
03/14/2003 (6:41 am)
Ahh, I didn't realize they needed relighting.

I will look into that function mentioned.

Thanks,
-Jeff