Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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

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.

  • Author

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

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
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.