Jump to content

Get Entity Z


Recommended Posts

Posted (edited)

Hey, I am working on a middle mouse button camera rotation class,

 

I have been able to calculate the required camera yaw angle to get the entity into the gameview however I am having troubles calculating the pitch angle.

 

I need a function that can return me the local 'grid' Z position of an entity, just like getCamera().getZ() does.

 

I've noticed that entities have getGridX() and getGridY() functionality, but I couldn't find anything that returns the Z value (Unless its always the same as position.getZ()

 

Best case scenario would be finding Z position relative to my player (or camera)

 

Edited by Abuse

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...