How to Set object typeMask?
by Peter Siedle · in Artist Corner · 02/01/2006 (2:27 am) · 5 replies
Hi Guys
just a quick one I hope. I've also posted the same question in programming forum, becasue I'm not sure if this is a programming thing or an exporter / model thing, anyway....
How do you specify an objects typeMask?
A search for typeMask in forums tells me how to get the typeMask, but not how to set / specify it!
Cheers
Pete
just a quick one I hope. I've also posted the same question in programming forum, becasue I'm not sure if this is a programming thing or an exporter / model thing, anyway....
How do you specify an objects typeMask?
A search for typeMask in forums tells me how to get the typeMask, but not how to set / specify it!
Cheers
Pete
#2
Everything Torque related (ie. that has to do with Torque directly) should be in the Torque Public or Private Forums, whether it's a modeling issue, or a programming one. I haven't seen your other post though.
You waited 25 hours and then bumped both posts of yours? (: Nice! If all posts got an answer within 25 hours I would be a happy man.
As this answer requires me to post code, I cannot do it directly.
But as an example, look in (and this *is* pretty much the answer) game\missionMarker.cc @ line 21. That's how you do it.
If you want to know more typeMasks or how to create more of them, check out game\objectTypes.cc.
Have fun!
02/02/2006 (4:05 am)
Sup Pete,Everything Torque related (ie. that has to do with Torque directly) should be in the Torque Public or Private Forums, whether it's a modeling issue, or a programming one. I haven't seen your other post though.
You waited 25 hours and then bumped both posts of yours? (: Nice! If all posts got an answer within 25 hours I would be a happy man.
As this answer requires me to post code, I cannot do it directly.
But as an example, look in (and this *is* pretty much the answer) game\missionMarker.cc @ line 21. That's how you do it.
If you want to know more typeMasks or how to create more of them, check out game\objectTypes.cc.
Have fun!
#3
02/02/2006 (4:10 am)
I think you can also define a type mask in script, but I don't know how off hand(datablock member maybe?).
#4
From StaticShape.cc @ line 93. Seems you're right.
02/02/2006 (4:14 am)
Quote:
// We need to modify our type mask based on what our datablock says...
From StaticShape.cc @ line 93. Seems you're right.
#5
Sorry if I came across like I had a bug up my ****, must have been one of those days.
I did put a smiley in the second post though :o)
I tried setting the 'dynamicType' (found in the Torque documention at http://www.garagegames.com/docs/tge/general/apds05.php) to a typeMask value in the datablock,
but it didn't work.
Anyway, I'll have a look at the files you guys mention & thanks again.
Pete
02/09/2006 (8:03 am)
Thanks for the replies guys.Sorry if I came across like I had a bug up my ****, must have been one of those days.
I did put a smiley in the second post though :o)
I tried setting the 'dynamicType' (found in the Torque documention at http://www.garagegames.com/docs/tge/general/apds05.php) to a typeMask value in the datablock,
but it didn't work.
Anyway, I'll have a look at the files you guys mention & thanks again.
Pete
Torque Owner Peter Siedle
Seems strange that it's an available option for collision testing if nobody uses it!
:o)
Pete