Am I overlooking an existing method?
by Nathan Huffman · in Torque Game Builder · 12/20/2006 (12:07 am) · 4 replies
To move an object, say a static sprite, from it's current location to a new location, but only to the new location if it would "fit" (based off it's collision polygon and objects around the new location coords).
setPosition and moveTo both have their drawbacks for what I'm trying to accomplish.
setPosition and moveTo both have their drawbacks for what I'm trying to accomplish.
#2
1) Holiday stress
2) You're smarter than me :)
Thanks ;)
12/22/2006 (4:02 pm)
Ah, that's an excellent idea. I would say, "I don't know why I didn't think of that" - but I'm going to blame it on two reasons:1) Holiday stress
2) You're smarter than me :)
Thanks ;)
#3
btw relax, it's the Holidays, have a good time (of course this is probably coming too late since you posted this before Christmas).
12/27/2006 (9:44 am)
Great suggestion Drew. castCollision is a very powerful tool for things such as this :) Glad you got a good answer Nathan :) btw relax, it's the Holidays, have a good time (of course this is probably coming too late since you posted this before Christmas).
#4
I've use it because castCollision give me a strange results sometimes.
12/29/2006 (4:40 am)
There is another method - pickRect() can be useful. Some hand work assumed.I've use it because castCollision give me a strange results sometimes.
Torque Owner Drew -Gaiiden- Sikora