Jump to content
tipforeveryone

How can I seperate animated bones

Recommended Posts

Hi everyone,

 

I have a character model with an animated arm.

I want character's neck bone to rotate following my mouse look rotation.

Everything seems to be ok if I don't use entity:SetAnimationFrame, character head rotates nicely.

But when I apply entity:SetAnimationFrame to animate the arm, I can't control neck bone anymore.

Animation of character's arm is normal.

 

How can I seperate animated arm bone from neck bone to use both animation and manual control

Share this post


Link to post

Accidently, I found out how to solve this.

 

when using Entity:SetAnimationFrame, adjust blend value from 0 to 0.1 and it is done!

 

bone:SetAnimationFrame(Time:GetCurrent(),0.1,"animation name")

Share this post


Link to post

Actually all you did was change the interpolation value between frames and that typically is used to blend sequences from one to another or together. While this may work for what you are attempting, another way would be to not animate the bone in question. This would be determined by the skeleton hierarchy. If the bone you are wanting to manipulate is a child of another bone then just animate the parent bone and not the child by setting the recursive parameter in Entity:SetAnimationFrame() to false.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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.

×
×
  • Create New...