You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to make some kind of selector and I need the npc I have to rotate completely, but with the lookat method it only rotates the player's head and not the entire body.
Perhaps something similar can be achieved with the BodyRotationControl class. and make a lookat method that receives a boolean value to rotate the body as well, I couldn't implement it correctly but maybe someone else will do it
I did 2 tests. Which are the same ones I tried before. In the first test it was a little better but since the package is used it makes the npc hit the air so it looks bad. In the second test the same thing happens as before. The body begins to rotate when the angle of rotation of the head reaches the limit so to speak. Well, I'm not sure if it's possible to implement the class I mentioned "BodyRotationControl". I attach a video with both tests and their codes.
I was trying to make some kind of selector and I need the npc I have to rotate completely, but with the lookat method it only rotates the player's head and not the entire body.
Perhaps something similar can be achieved with the BodyRotationControl class. and make a lookat method that receives a boolean value to rotate the body as well, I couldn't implement it correctly but maybe someone else will do it
https://github.com/FancyMcPlugins/FancyNpcs/blob/main/implementation_1_20_2/src/main/java/de/oliver/fancynpcs/v1_20_2/Npc_1_20_2.java#L141
I only found this reference to the mentioned class:
https://nekoyue.github.io/ForgeJavaDocs-NG/javadoc/1.18.2/net/minecraft/world/entity/ai/control/BodyRotationControl.html
The text was updated successfully, but these errors were encountered: