Jump to content

Rotating a bone


Yue
 Share

Recommended Posts

I have here a problem in the rotation of a bone retrieved with the FindChild command.

The thing is that when I use the Turn command, the bone rotates but then stops. 

 

 

self.boneHead = self.entity:FindChild("boneHead")
self.boneHead:Turn(1,0,0)

This only happens with X-axis rotation.

Any suggestions on this matter would be appreciated.

 

 

Link to comment
Share on other sites

I was just here testing here and I was curious that you don't turn the bone with the turn command.

The thing is that I am collecting information from the bones to create the Ragdoll effect.

I also did the test with the zombie bone from the Leadwerks examples and the same thing happens.

 

 

Link to comment
Share on other sites

Thanks, I have tried many prototypes and now with a fresh mind I will surely make a breakthrough.

The secret would be to create the ragdoll initially, have it somewhere on the stage and then rotate it and attach it to the character. 

Let's see how I do in this new attempt to resume my project :D
image.thumb.png.80e6c5b3a3a3e97c9d3a39f0fdfddade.png
 

  • Like 2

 

 

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