Hi there,
is there a way to move a square sprite
just by using
rotation?
Hi there,
is there a way to move a square sprite
just by using
rotation?
Hi @Spiderwork
Haven’t ever tried this specific thing, but if you are using 2D physics system to move your objects, then there is Apply Force at Position method. In theory, you could apply force to corner of cube so that it flips around: Unity - Scripting API: Rigidbody2D
Let me know if it works…
Another choice is to just animate it in Unity or in your 3D software to give impression of rolling. There are many mobile games where this kind of animation has been used.
I don’t understand how to apply force to a corner, but anyway, I found a solution: I rotate it and move it at the same time. I’m also turning FreezeRotation.Z on when moving and when player is not running, I turn it off - then the rotation is going down correctly!
But thanks for your answer (sorry for my bad english)!
Hi,
please find some guidance here under point 5. & 6. of my guide:
https://discussions.unity.com/t/764132
Check this,