-
How to change rotation of an object through time from startRotation to endRotation?
Hey, I have two arrays of quats: first consisting start rotation of objects and second with end rotations. Can't find a good way to smoothly change rotation from start to end. I've tried to use quat.lerp as I did usually, but it doesn't work properly for some reason - all objects end up in one location (0, 0, 0). What is…
-
What are the best methods to fit SceneObject to screen?
Hey everyone, Question regarding fitting an object to the screen. I have a rectangular cube (to keep it simple) with ratio equal to average screen ratio (9:16), the goal is to write a func which would fit it to the screen. The cube will use screen texture as the texture, so it should fit the screen 1:1. What are the best…
-
How to access current Hand Gesture state string ("open", "horns", etc)?
Hey guys! What is the method to access current hand gesture state? Can find it anywhere. I know I can hardcode the outcome for each particular gesture (f.e. script.handTracker.registerDescriptionStart("open", triggerFunc), but how can I access the current state as a variable? So this variable would store current state of…
-
Why a grid of objects has different z-coordinates in Lens Studio
Hey everyone! Quick question regarding objects' position. I have a grid of individual objects, and all of them have the same Z-coordinate. However when I access objects' position through getLocalPosition() or getWorldPosition() objects' Z-coordinates differ from one another. How does this work and why is that so in…