Game Development Community

Question about shapes

by Steve D · in Torque Game Engine · 02/03/2007 (7:30 am) · 3 replies

Hi all, another newbie question - I'm confused what determines a shape to be a tsstatic vs a static shape. While building a map using the weapons pack I purchased the weapon items are assigned as tsstatic shapes and I can't assign a datablock to them through the editor. The torque logo item is showing up as a static shape and I can assign a datablock to it.

So my questions are what pre-determines what kind of shape they are and in the case of the weapon models how do I assign a datablock to them, or do I not need to when they are floating around the map?

#1
02/03/2007 (9:43 pm)
You have to write a datablock script for the item you want to be tsstatic. If you look at the gettingstarted.pdf it will show you how to do this.

Tony
#2
02/04/2007 (6:00 am)
Thanks, I got that part figured out, I wrote an itemdata block, assigned it a category / dts file and now it shows up in the shapes category instead of the static shapes. However, when I click the item nothing happens, it doesn't get placed in the world. I copied over a crossbow datablock from the starter.fps and still nothing. It's there in the shapes list but can't place it, can anyone point me in the right direction?
#3
02/04/2007 (6:09 am)
Actually, never mind, it wouldn't be placed when it was an ItemData datablock but it worked fine when I made it a staticshapedata datablock but I have no idea why that is, can anyone enlighten me? :)