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 ) .
🔒 Locked
Skinned Animation
Advertisement
Original Post
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.
@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.
Advertisement