Jump to content

Fastest way to gt Current Cameras forward


Recommended Posts

I might be tripping, but don't we have a quick reference to the cameras forward vector?
Like the Unity equivalent to:

  1. Camera.main.transform.forward

I know we have one for up... Im having trouble doing simple stuff today I feel like my brain is not working.

Link to comment
Share on other sites

Some people might say... "but my camera has no target set"... but cameras (such as free cam) have a _currentTarget by default, located 1 unit ahead of the camera.  So getTarget() never fails, even on cams that have never had a user-target set.


Yuh, yuh, yuh.  I found the answer in about 7 minutes using a forum search for "camera direction".  neener.  :D  But you answered yourself before I could type this.  Sorry.  Hope it's less traumatic next time.  Did you add a note to the camera tutorial?  ;)

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.

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