Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set location feature #21

Closed
dkastl opened this issue Mar 18, 2014 · 1 comment
Closed

Set location feature #21

dkastl opened this issue Mar 18, 2014 · 1 comment
Assignees

Comments

@dkastl
Copy link
Contributor

dkastl commented Mar 18, 2014

Add a function, which allows to set the current location, which may consist of

  • (required) Latitude
  • (required) Longitude
  • (optional) Altitude (if not provided, choose some meaningful defaults)
  • (optional) angle horizontal ("heading")
  • (optional) angle vertical
@dkastl dkastl added this to the High Priority milestone Mar 18, 2014
@m-schuetz
Copy link
Collaborator

Done, see #24

set and get position:

node.localPosition = [x,y,z];
node.globalPosition = [x,y,z];

set orientation (yaw = heading)

node.yaw = 1;
node.yaw += 0.1;
node.pitch = 1;
node.pitch -= 0.1;

set point of view

node.pointOfView = {pos: [1,2,3], pitch: 0.2, yaw: 1.5};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants