Zephos Posted September 30, 2018 Share Posted September 30, 2018 Hi all, I have noticed that with animations, etc, it is often necessary to call a function that changes a mesh's position, get the new position, then undo the change by assigning the old value, and then animating between them. Now, perhaps there are already ways to get the new value without actually changing the position before animating, but I have had a hard time figuring out what methods those are. For example, recently I wanted to animate the rotation of a TransformNode that was my camera's parent. I used the lookAt() function and it worked fine, but it rotates my mesh before the animation. Is there a similar function that just returns the new rotation value? Looking through the source code, I couldn't find one that was obvious, but that may be because I am still getting the hang of the linear algebra stuff and don't know what things are doing. If there isn't something like this, I am actually all set up with a clone of the repo (or my fork of it) and would love to add a getLookAtValue() function and do a PR. It would do the same thing as lookAt but without changing the mesh's actual rotation and would just return the values instead. Thoughts? Thanks, Zephos Quote Link to comment Share on other sites More sharing options...
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.