ThexXTURBOXx Posted February 8, 2016 Posted February 8, 2016 Hello guys ^^ Maybe I am just silly, but I think, that setRotation(...) in Entity-classes doesnt't work... Is there a way to set the rotation of a EntityThrowable? Do I have to add something in the Model-class, Entity-class or Render-class? Here are those classes: https://github.com/TheOnlySilverClaw/Reforged/blob/master/java/org/silvercatcher/reforged/entities/EntityJavelin.java https://github.com/TheOnlySilverClaw/Reforged/blob/master/java/org/silvercatcher/reforged/render/RenderJavelin.java https://github.com/TheOnlySilverClaw/Reforged/blob/master/java/org/silvercatcher/reforged/models/ModelJavelin.java I hope you can help ^^ Bringing the best mod back alive! Our mod REFORGED! Balkon's Weapons for 1.8: https://github.com/TheOnlySilverClaw/Reforged/releases
YoungErtu Posted February 8, 2016 Posted February 8, 2016 On 2/8/2016 at 10:25 PM, ThexXTURBOXx said: Hello guys ^^ Maybe I am just silly, but I think, that setRotation(...) in Entity-classes doesnt't work... Is there a way to set the rotation of a EntityThrowable? Do I have to add something in the Model-class, Entity-class or Render-class? Here are those classes: https://github.com/TheOnlySilverClaw/Reforged/blob/master/java/org/silvercatcher/reforged/entities/EntityJavelin.java https://github.com/TheOnlySilverClaw/Reforged/blob/master/java/org/silvercatcher/reforged/render/RenderJavelin.java https://github.com/TheOnlySilverClaw/Reforged/blob/master/java/org/silvercatcher/reforged/models/ModelJavelin.java I hope you can help ^^ what do you want to do exactly? that could help us. "My Crew is World Wide." 「ヤング • エルトウ」
ThexXTURBOXx Posted February 8, 2016 Author Posted February 8, 2016 On 2/8/2016 at 10:27 PM, YoungErtu said: what do you want to do exactly? that could help us. I want the Entity to get rotated. It should get rotated when it is thrown so it looks in the same direction the player is looking. Right now it looks in the same direction everytime (I think it's north). Bringing the best mod back alive! Our mod REFORGED! Balkon's Weapons for 1.8: https://github.com/TheOnlySilverClaw/Reforged/releases
ThexXTURBOXx Posted February 8, 2016 Author Posted February 8, 2016 On 2/8/2016 at 11:36 PM, gummby8 said: I answered your question your other thread for your boomerang. Just do the same thing http://www.minecraftforge.net/forum/index.php/topic,36246.msg190722.html#msg190722 Well, tried that already, but the Javelin flies pretty crazy then. It rotates while flying then. Bringing the best mod back alive! Our mod REFORGED! Balkon's Weapons for 1.8: https://github.com/TheOnlySilverClaw/Reforged/releases
ThexXTURBOXx Posted February 9, 2016 Author Posted February 9, 2016 And could someone please explain me the difference between setPositionAndRotation and setLocationAndAngles? Both have the same paramters Bringing the best mod back alive! Our mod REFORGED! Balkon's Weapons for 1.8: https://github.com/TheOnlySilverClaw/Reforged/releases
Draco18s Posted February 9, 2016 Posted February 9, 2016 How about you use Jump to Declaration and look at their implementation? Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
ThexXTURBOXx Posted February 9, 2016 Author Posted February 9, 2016 On 2/9/2016 at 2:04 PM, Draco18s said: How about you use Jump to Declaration and look at their implementation? Ok, I will try that ^^ Bringing the best mod back alive! Our mod REFORGED! Balkon's Weapons for 1.8: https://github.com/TheOnlySilverClaw/Reforged/releases
ThexXTURBOXx Posted February 9, 2016 Author Posted February 9, 2016 On 2/8/2016 at 11:36 PM, gummby8 said: I answered your question your other thread for your boomerang. Just do the same thing http://www.minecraftforge.net/forum/index.php/topic,36246.msg190722.html#msg190722 OMG sorry -.- In the GL11.rotated(...) I set in the parameters x, y, z instead of 0, 1 and 0.... Sorry ^^ Bringing the best mod back alive! Our mod REFORGED! Balkon's Weapons for 1.8: https://github.com/TheOnlySilverClaw/Reforged/releases
Recommended Posts