Jump to content
Search Community

Targeting single value in an array for 3D Object position?

Gerg Person test
Moderator Tag

Recommended Posts

I'm working in Wonderland Engine which is an editor for making VR, XR experiences.  It's 3D and the way they handle 3D positions/scales/etc.. is through arrays, so an object will have a scale of [1, 1, 1] and position has an array of 8 values! shown below...

image.png.f2e084bed03e0737beaea9d2a843c5d5.png

I have correctly targeted the object I want to animate, it doesn't animate but it does snap to the scale at the end of the duration.  Im using the code below:

image.png.b0459442ed9aad9c48befaf70ac81bad.png

Is it possible to animate those values with GSAP?  If it is, how would I single out those 'scalingLocal' values?  the array is not working like a single value would.  But it is doing something because after 3 seconds my object snaps immediately to 4x the size, so somethings going on.  I tried scalingLocal.x, it comes up undefined.

 

Thanks

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...