Some questions with changing collision polygon
by Alexander de Hartdegen · in Torque Game Builder · 02/08/2009 (8:10 pm) · 2 replies
the collision polygon is changed when the object is moving (let's call it "Object A"). Object A is not supposed to pass through Object B due to collision detection. However, when Object A is just right next to Object B and I start moving in the direction of Object B, Object A passed through Object B which by right, should not happen. I need some advice on how to overcome this situation, or is there a better way other than changing the collision polygon on the go. I need to change the collision polygon due to the fact that the polygon should be different for every other animation.
Sorry for been a little long winded. Any advice would be appreciated.
Thanks a lot!
Sorry for been a little long winded. Any advice would be appreciated.
Thanks a lot!
#2
02/10/2009 (2:17 am)
ok, i have found the problem. That's because Object B's collision polygon is too thin, so if Object A's new collision polygon is beyond Object B's polygon, it will pass through. Thanks for all the advice.
Torque Owner Steven Hine
Not sure about your other problem, but you may what to try castCollision. It sounds like the objects are very close or touching and A is being forced through B, because B is immovable.