Yue Posted December 14, 2021 Share Posted December 14, 2021 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. Quote Link to comment Share on other sites More sharing options...
Slastraf Posted December 14, 2021 Share Posted December 14, 2021 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() 1 Quote Link to comment Share on other sites More sharing options...
Yue Posted December 14, 2021 Author Share Posted December 14, 2021 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. Quote Link to comment Share on other sites More sharing options...
Slastraf Posted December 14, 2021 Share Posted December 14, 2021 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 ? 1 Quote Link to comment Share on other sites More sharing options...
Thirsty Panther Posted December 14, 2021 Share Posted December 14, 2021 This thread might be of some help. Its a little old but has example code that will head you in the right direction. 1 Quote Link to comment Share on other sites More sharing options...
Yue Posted December 14, 2021 Author Share Posted December 14, 2021 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 2 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.