Hi. My already different problem with the same script is as follows. I’m creating a Raycast from a head bone object, forward. And here comes the problem. After using DrawLine (to see where the Raycast is) I can see that the head bone is spinning really weird. I am very surprised because the head itself that is attached to this bone (Weight Paint in Blender) rotates as it should. So the head turns fine but the bone doesn’t. I am using “Multiple Rotation Constraint” to rotate the head bone. I hope I have described my problem clearly enough. Can anyone help me?
It sounds like you may be experiencing an issue with the way that your rotation constraints are set up on your head bone object. To fix this, you may want to try the following steps:
Make sure that your rotation constraints are applied to the correct axes on the head bone object. Depending on how you have set up your constraints, you may need to adjust the settings to ensure that the head bone is rotating correctly.
Check the order of your constraints. If you have multiple constraints applied to the head bone, they may be conflicting with each other, which could cause the weird rotation behavior that you are seeing. Try reordering the constraints to see if this fixes the problem.
Try using a different type of constraint. Instead of using multiple rotation constraints, you could try using a single orientation constraint, which may be more effective at controlling the rotation of the head bone.
If all else fails, you could try using a different approach to rotating the head bone. Instead of using constraints, you could try using a script to directly control the rotation of the head bone based on user input or other factors. This may require more work, but it could help you achieve the desired behavior.
Overall, the key to solving this problem will be to experiment with different approaches and settings until you find a solution that works for your specific situation. Good luck!
I’m really stupid. The problem I described was caused by code I wrote that was completely useless and I forgot to remove it. I’m really stupid