Jump to content

Recommended Posts

Posted

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.

 

 

Astrocuco.thumb.png.c76e0fb3de2d6e437e7dca099625e11e.png

Posted

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
Posted

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.

 

 

Astrocuco.thumb.png.c76e0fb3de2d6e437e7dca099625e11e.png

Posted

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
Posted

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

 

 

Astrocuco.thumb.png.c76e0fb3de2d6e437e7dca099625e11e.png

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.

×
×
  • Create New...