Jump to content

Lua API request: return view direction vector


UnCheat

Recommended Posts

As one of a few Augmented Reality HUD lua developer for DU I can tell that there is a big need of such functions as:
1. getViewVector()
  It could return normalized direction vector in a construct local coordinates
2. getWorldViewVector()
 It could return normalized direction vector in a world coordinates
3. getPlayerCamera()
 It could return a number that represents a type of camera player is using (for example: 1-first person, 2-third person)

It could really help to sync AR with game coordinates! And make way more great stuff even for popular 3-rd person mode/
Currently at any lag we loose system.getMouseDeltaX(),system.getMouseDeltaY() data so the only way is to reset camera with lockView(1) that is not comfortable to any user. Also we can not make any 3-rd person AR because we can not predict 3-rd person view camera direction on camera switch or even detect camera switch.

Link to comment
Share on other sites

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
×
×
  • Create New...