-
Notifications
You must be signed in to change notification settings - Fork 70
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
Moving camera around POI on mobile #41
Comments
Hi @anesumuz please checkout the wiki page that's a guide to animations https://github.com/awe-media/awe.js/wiki/tweening-example So to extend your example to spin your object around the Y axis 360° over 5 seconds and then reset to how it started (e.g. persist:0) you can simply use this code:
Of course this is spinning it using the poi that provides the basis for that coordinate system. You can also apply this at the projections level too. |
My question was with regard to moving the camera view around a projection and not rotating the projection itself. Is this possible with the current API available? |
Hi @anesumuz - good question. Here's some simple code that shows you how to do that.
NOTE: This highlighted a small issue with povs updates and we've pushed a fix for that so please pull the latest version to use this code - see commit 17a0833 |
Also note that if you're using the gyro plugin or any other plugins that are driving the pov's position/rotation then you may want to disable that during this animation. |
This github repos is now focused on supporting the development of apps using awe.js on the awe.media platform. You can still access our older awe.js library as the |
Having created a fixed projection, how can I move around the POI to see around the projection? I m able to display the model in the scene but am unsure of the approach to take to viewing around it . A short example/pseudo code would be appreciated.
The text was updated successfully, but these errors were encountered: