Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[1.8]Rotating TileEntity


PeterRDevries
 Share

Recommended Posts

I've been trying and fiddling around with these Fing numbers

But I can't seem to figure it out, this is my Tilentity renderer code that rotates a disc but it's well not rotating correctly:

 

 

Thanks in advance, I've really been trying hard to figure this out myself I know it has to do with some calculate stuff but I just can't figure it out,

 

I've googled on everything and tried everything, i'm desperate.

 

 

I'm always happy to help others!

 

Java is not my main programming language but I have alot experience in PHP/HTML/JS/CSS3/C#/SQL

Link to comment
Share on other sites

Ok.  You have a few problems. One is not understanding how translate and rotate interact.  Rotation always happens around the origin.

 

Secondly, you haven't used the parent/child feature of ModelBase, allowing you to simplify the math by rotating the parent rather than the object directly.

 

And oh yeah, thirdly.

 

You can rotate the boxes directly without using glRotate.

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.

Link to comment
Share on other sites

Hi thanks for your reply,

 

Yes I knew rotation happens around the origin, but I've managed to shift it in a weird hacky way before using calculation to edit the translation... which was more work then it should be.

 

How should I go on to rotate the model then? Should I use something like the setRotationAngles function? or how should I tackle this?

I'm always happy to help others!

 

Java is not my main programming language but I have alot experience in PHP/HTML/JS/CSS3/C#/SQL

Link to comment
Share on other sites

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.   Restore formatting

  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.

 Share



×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.