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

Animation Transaction smooth disposal #300

Open
marcspraragen opened this issue Jul 24, 2019 · 0 comments
Open

Animation Transaction smooth disposal #300

marcspraragen opened this issue Jul 24, 2019 · 0 comments

Comments

@marcspraragen
Copy link

(Windows 10, Android Studio 3.4.1 compiling SDK 28, ViroCore 1_14.
Testing on Samsung S8+)

Description

I have a question about Animation Transactions. Specifically, how can I change one midstream without terminating it, as termination causes the animation to immediately snap to final state.

What I'm trying to do is animate an Object3D node to walk around (slowly) trying to stay in front of the camera. This is working to some extent, using a bunch of trigonometry and Animation Transaction (position change).

The problem is that the Animation Transaction moves the Object (linearly) to a fixed point in front of the camera, and becomes invalid when the camera itself changes position. I can't change the end position for the animation without terminating the Transaction, which teleports the Object to the original end position.

Is there any way to get inside an Animation Transaction to give it some subtler controls? There doesn't seem to be an Interpolator for non-View objects.

Reproducible Demo

Let me know if you need code (it can work with sample Andy vrx).

Thanks,
--Marc

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

1 participant