I'm working on a gladiator combat game and I need to implement a system where the sword follows the mouse, ala Die By The Sword. How would I go about implementing this?
Thanks,
Smeagol
Mouse-controlled Melee
Started by Smeagol3, May 27 2006 03:35 AM
1 reply to this topic
#1
Posted 27 May 2006 - 03:35 AM
#2
Posted 27 May 2006 - 04:08 AM
Google for "inverse kinematics". Basically, you have a skinned model (presumably), you map the mouse location into the location in space of a point on the sword (simple linear transformation, probably), and then use IK to solve for the bone position of the model that will bring the sword where you want it.
reedbeta.com - developer blog, OpenGL demos, and other projects
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











