when the control twisted THEN ROTATE slow ??

Hello,
Any idea how to do, so that when turning the control of the oculus go, at the same time turn a GAMEOBJECT?
but three times slower?
or smooth slower please ?

I leave the picture of what I need.
I don’t have any script yet.
I need help. please.
thanks a thousand!
.
5119928--505748--upload_2019-10-29_16-12-36.png

I think you need to get controller rotation as Quaternion with :

ContollerRotationQ = OVRInput.GetLocalControllerRotation(activeController);

then set the rotation of your object with Quaternion.Lerp

object1.rotation = Quaternion.Lerp(object1.rotation, ContollerRotationQ, Time.time * speed);

This should work fine with small speed float values such as 0.001f

thanks really thanks …

question…
if I twist the oculus control enough hard… the cube will rotate in the same direction, and faster?
and on the contrary …
if I have it slightly soft a little bit, will the cube rotate slowly smooth ?
is that so?

Try it.

1 Like