Jump to content

[Solved] Move Speed from Animation


Roland
 Share

Recommended Posts

Hi

 

I want to calculate the move speed of an animated character.

My simple first approach was to measure the distance between the feets

 

TVec3 lPos = EntityPosition( _leftFoot, 1);
TVec3 rPos = EntityPosition( _rightFoot, 1);
_curSpeed = fabs(lPos.Z-rPos.Z); // calculated speed

 

That kind of works but the character will move in a (jagged?) manner.

I know someone of you have done this calculation but can't remember who.

 

Anyone?

Roland Strålberg
Website: https://rstralberg.com

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...