decentraland / sdk

PM repository for SDK
Apache License 2.0
4 stars 4 forks source link

Tween rotation weirdness #1063

Closed nearnshaw closed 7 months ago

nearnshaw commented 8 months ago

In this simple scene, a cube is meant to do the following each time it's clicked:

Instead, it does some weird things, teleporting back and forth between previous positions.

https://github.com/decentraland/sdk/assets/3507907/5a2fc650-46ad-4063-a243-cfe491fcb322

If I remove the lines that do the rotation tween, it works well. It never rotates, but it always moves from one point to another smoothly, never defying the laws of physics.

This also happens using explorer-branch=dev, which includes the latest fixes to tween movement. Movement works great with that, but rotation seems to still mess things up

If I make a scale tween instead of a rotation tween before the movement, I have the same problems. So scale is being affected the same as rotation. (There are some lines in the file you can comment out to try this)

https://github.com/decentraland/sdk/assets/3507907/bf33a578-2176-46c6-b55e-bb25af5dedb8

This is the scene:

tween-rotations 2.zip

pravusjif commented 7 months ago

Tackled at https://github.com/decentraland/unity-renderer/pull/6057

pravusjif commented 7 months ago

Should reach production with next explorer release and subsequent sdk release (most likely 7.3.37).