Game Development Community

Spot Swing in Lighting Features demo

by Jake Callery · in Torque Game Engine · 03/16/2007 (6:37 pm) · 3 replies

Hey guys, I just have a quick question.

In the Lighting Features Demo, how exactly is the "spotSwing" object animated?
I can't seem to find a dts for it or anything that is scheduling the animation.

I'm pretty new at all of this, and have just been digging around for the past few
days.

Any help would be greatly appreciated!

Thanks!
Jake

#1
03/16/2007 (7:47 pm)
The shape is in here
\example\starter.fps\data\shapes\lightingPack\spotswing.dts

use your torque showtool and examine it and play the animation.
I've seen it but can't remeber if it has a node or something for the light.

I've played around with torsion demo for torque script and you can search anything you want and it will search the whole project and it will show your the exact .cs script and line
#2
03/18/2007 (8:24 pm)
The dts has a standard mount0 node.
The object itself has the datablock of SpotSwingStaticShape. Right under the definition of the datablock, there is an onAdd function that creates the volume light and attaches it to the dts. It should be in sgExamples.cs.
#3
03/19/2007 (6:12 am)
Great! Thanks very much for the info. I'm not sure how I missed it.
Must have been too tired.

Thanks again for the help Ross and James.

Jake