Skip to main content
GameDev.net gamedev.net
🔒 Locked

Skinned Animation

Started by MohammadAhmed Mar 9, 2013 at 5:14 PM 1 replies 900+ views
Original Post
MohammadAhmed
MohammadAhmed

Hello , I am using skinned sample from microsoft , so I copy the skinned sample project and past it inside my physics engine , now any strategy for moving the charachter when the player press (w ) for example , while the physics stuff and collision is done , but I just need the steps to make the skinned sample charachter (.fbx model) move when player press ( w ) .

MohammadAhmed
MohammadAhmed

@Steve_Segreto , thank you .

I have done it , but I have to apply it for all the model like this ! right ?


     // Calculate matrices based on the current animation position.
            Matrix headRotation = Matrix.CreateRotationX(CameraPitch * 0.5f);
            Matrix rightElboRotation = Matrix.CreateRotationX(CameraPitch * 0.3f);
.......................
            // Apply matrices to the relevant bones.
            _animator.BonePoses["head"].DefaultTransform = headRotation * _headTransform;
            _animator.BonePoses["relbo"].DefaultTransform = rightElboRotation * _rightElboTransform;
............................

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.