Question 1. Does anyone know how they did the collision detection in the alley fighter demo.
Question 2. How do make a gun parent it to a hand that is controlled by an armarture but still make it so I can change the weapon. (when using replace mesh the new mesh doesnt follow the armature).
make a new arm and gun (same mesh) and replace mesh - much easier
I think what tmtechie means is creat a whole new arm object (whith it’s own armature) and swap between them with add / end object.
That works for 1st person games, but for a 3rd person games you’ll have to find another way. (The only way I can think of is to have all the weapons parented to the armature, and then use visibility actuators to set all but one of them invisible.)
PS.
I’m not sure how they did collision detection, but I suspect they used invisible cubes parented to the fighters and somehow synchronized the movements of the cubes with the movements of the armature.
If you know python, it might be interesting to note that vertex.getXYZ() works correctly on objects deformed by an armature.
invisibilty is indeed the way to go. I thought that they’d still take up framerate but the dont!