Jump to content
Nora

camera

Recommended Posts

Is there not a way to check what inputs the client is making? Just based on the way it reads it seems like it wouldn't, but that's probably not helpful. If there's a way to get key presses in the api itself, you could potentially make a script that logs every time up arrow is pressed. Then just set the camera already to the top and run the script with camera.toTop(); added to it and see. :shrug:

Link to comment
Share on other sites

2 hours ago, Lemons said:

If I'm not mistaken, the highest pitch is 67. So if you wanted to be 100% sure, you could do:


if (getCamera().getPitchAngle() < 67) {
    getCamera().toTop();
}

That being said, the Camera.toTop() method most likely already does this check.

He was asking whether it would or not without if conditions, I don't why he couldn't just use one, but yea.

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.



  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...