Game Development Community

Collision Box doesn't move with animation.

by CTS · in Technical Issues · 01/19/2007 (11:47 am) · 0 replies

Hi, everyone. This is my first Tread so bear with me please. I ceate an object that I attach to a WheeledVehical. I make this object a static object since all I want it to be able to do is have collision and that is all. The WheeledVehical has an animation that will cause the attachnode of where the Object is to move. So when I play the animation on the Vehical I want the attached object to move with the animation. I have this working fine... Now here is the problem. The Collision box of the attached object doesn't follow the object when it is moved by the vehicals animation. Is there any way to turn off collision for the object that I have attached to the vehical and or have the objects collision box follow it's movement?

To make this a little clearer. The Vehical is a Forklift and the object I attach to it is a pallet of chemicals or bags or whatever I want. Since I want to be able to drive my forks through the pallete I need to be able to turn off the collision of the pallet when my forks are in the right place. I than need to turn the collision of the pallet back on so when driving around, the pallet will collide with walls and the ceiling and such. The animation is the raising and lowering of the forks and also the tilting of the forks. The attach node is just out in front and to the center of the forks on the Vehical. The node moves with the animation from what I can tell and when I have an object attached to the node the object moves with the animation, just not the objects collision box. So again I need the collision box to follow the object and I need to be able to turn off the collision box of the object.