I’m a new indie game developer and learning how to attach hurt and hit boxes to models with Rapier colliders. I’m currently playing with the FBX Mixamo models, and my goal is to attach a CapsuleCollider to the model’s left hand, mixamorigLeftHand, that appears on normal attack (Q button). My thought process was to: (1) get the position of one of the hand bones, (2) attach a collider, and (3) update the collider’s position based on the bone’s position.
However, the bone’s position coordinates do not change even though I clearly see the skeleton moving with the animation. Check out the prototype at https://dg-proto.vercel.app/ and hold the Q button. The logs consistently show leftHandPos: 0, 0, 0 but I expected changing values over time.
Please, what am I misunderstanding? It feels like I’m missing something fundamental here, and I would appreciate some insight.
You can look at the React Three Fiber code at dg-proto/app/components/Character.tsx at 110909c61134feef70fe281e45aa1242b3f6c3ee · NyaliaLui/dg-proto · GitHub
Thank you