Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Rotating a bone

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")

This only happens with X-axis rotation.

Any suggestions on this matter would be appreciated.

Link to post
Share on other sites

This is a really hard thing to do and unfortunately it only ever works with upright bone models. 
I made spider legs but modeled them like this
place bone, do not rotate scale etc
extrude it to the top
Then it is possible to rotate them, but also only tested with setrotation()

  • Like 1
Link to post
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 post
Share on other sites

About the turn, I haven't used it as I needed to "snap" rotation in my case.
Alternatively, have you tried adding a simple box collision to the bone, that dont ollide with each other, make the bones a joint of some sort, and then apply gravity to make it a ragdoll ?

  • Like 1
Link to post
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

  • Like 2
Link to post
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.

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