bone collision

Jan 6, 2009 at 6:16 PM
Hi, 
i'm creating a fighting game for my college's project. I want to attach a BoundaryBox to my character's arms and legs.
so I did a few experiment using XNAnimation and CollisionCube.cs from here:

private CollisionCube collisionCube;

.
.
.
.
.

public override void Draw(GameTime gameTime)
{
.
.
.
collisionCube.View = camera.ViewMatrix;
collisionCube.Projection = camera.ProjectionMatrix;
collisionCube.World = animationController.SkinnedBoneTransforms[23]; // 23 is index for R_forearm
collisionCube.Draw();
.
.
.
}

but when I run it, the cube is not in the correct place, yet the cube seems to move correctly as the r_forearm did...
did I miss something here..?

Regards