Jump to content

Turn bone with global rotation

Recommended Posts

Hey there I have a little question.I have an animated character and I want place the cam to the head of the character and rotate it with the mouse.The problem is that the picked bones rotationorigins are not at 0 ( you know what I mean :D ) , so when I try to rotate it in the X axis it turns diagonal or something like that.


Is there a way to rotate it with the correct origins of the camera ? I mean when I make a simple egoshooter camera with mouse input and say RotateEntity(Vec3(mx,my,0)); it turns the camera perfect with the mouse.Now I want the same result, but now I need to turn the Head which local axis aren't at 0,0,0


We speak here about Leadwerks 2 functions :) Thanks

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.

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