• Create Account

Awesome job so far everyone! Please give us your feedback on how our article efforts are going. We still need more finished articles for our May contest theme: Remake the Classics

# Skinned Animation

Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

2 replies to this topic

### #1mrmohadnan  Members   -  Reputation: 224

Like
0Likes
Like

Posted 09 March 2013 - 11:14 AM

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 ) .

Edited by mrmohadnan, 09 March 2013 - 11:15 AM.

### #2Steve_Segreto  Members   -  Reputation: 827

Like
1Likes
Like

Posted 09 March 2013 - 12:02 PM

Translate the skinned actor's world matrix (.41, .42, .43). You'll also probably need to apply a rotation in the world matrix to get them to turn around.

### #3mrmohadnan  Members   -  Reputation: 224

Like
0Likes
Like

Posted 09 March 2013 - 12:16 PM

@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["relbo"].DefaultTransform = rightElboRotation * _rightElboTransform;
............................
```

Edited by mrmohadnan, 09 March 2013 - 12:17 PM.

Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

PARTNERS