How can we add collision to debris ?
by Gilles Jr Lafrance · in Torque Game Engine · 07/04/2003 (12:37 pm) · 6 replies
Right now, my vehicles explode and it's really cool :) But there is no collision on the pieces. I tryed adding col-2, col-3, etc ... attached to some of the pieces in my vehicles but there is still no collision when exploding.
I also tryed to include DebrisObjectType in wheeledVehicle.cc and vis-versa. The debris then collide with the vehicle graphically but not physically. I suspect I'm missing something :
1 - In my DTS (need working collision that follow the pieces)
or
2 - Something in script (onCollision for debris ?)
I'd really appreciate some help and tricks :) I'm I on the right track ?
I also tryed to include DebrisObjectType in wheeledVehicle.cc and vis-versa. The debris then collide with the vehicle graphically but not physically. I suspect I'm missing something :
1 - In my DTS (need working collision that follow the pieces)
or
2 - Something in script (onCollision for debris ?)
I'd really appreciate some help and tricks :) I'm I on the right track ?
#2
07/04/2003 (4:14 pm)
Hehe, after thinking of it, none :) What I mean is that the pieces do react with the vehicles (they are stopped and rebound by hitting vehicles), but don't make the vehicle react like if nothing was there for the vehicle.
#3
07/04/2003 (4:34 pm)
Ahh... I see. So collision is happening, there's just no response... yeah, I think that the solution is probably going to be in script, ie, onCollision or some such.
#4
07/04/2003 (4:47 pm)
Ok thanks much Ben. I now remember that I've had the same problem with my movable items, so I just have to do the same for debris. Another job for my bro then (the scripter) :)
#5
07/04/2003 (5:53 pm)
Heheh. No problem... Good luck, and perhaps it might make a good resource once you get it working ;)
#6
07/04/2003 (6:25 pm)
Well maybe :) But I don't think I'm enough qualified to do a ressource right now. I'm still learning this great engine one piece at a time, improvising what we need when we need it :) but ... we never know.
Associate Kyle Carter