Jump to content

[LE2.5] RotateEntity doesn't work ?


ParaToxic
 Share

Recommended Posts

Hey guys I have a problem in my gamecode but I don't even know why.I placed a pivot ( a cube) to the head of a character and fixed it with entityparent.Now I position in the Update function the camera to this cube pivot with positionentity which works perfect but the rotateentity function don't work.When I try to give the camera the same rotation as the pivot it doesn't rotate...

For tests I also fixed the camera to the pivot with entityparent which works fine but without the camera doesn't roate... I don't know why maybe somebody can help me :)

 

RotateEntity(IEngineSystem::Inst()->GetCamera(),EntityRotation(this->m_headpivot));

 

Thanks

Link to comment
Share on other sites

Look the idea is to set a pivot to the head of the character with entityparent which moves and rotates with the head animation while idle/walk.... but I want to adjust the percentage of rotation the camera moves so I position the camera to the pivots position and rotate each axis but multiply it with my percentage value. That is because some animations are very strong in the X or Y axis so I want to adjust it.

I could skip the pivot and take the rotation of the head bone itself but it gives me very bad values, with global parameter 1 or 0 it makes no difference....

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