Rotate Objects 360 Degrees Independently


I would like to rotate an object around 360 on a fixed point on my touch screen.

I have downloaded a Unity plugin called ‘FingerGesture’ which is pretty good! However it doesn’t have anything that I’d like.

It has a component called ‘TB Orbit’ which you can attached to the camera, and the camera will rotate around the Object - which is exactly what I’m looking for in terms of controls. However, this rotates the camera around the Object; I’m looking for it to be the other way around.

I have 3 Objects in my scene, each to be able to rotate independently from one another, which is why the camera Orbit component won’t work for me.

So my question is, does anyone know of anything (purchasable, or not) that will let me achieve this?


I think that you are looking for RotateAround function

RotateAround Doc

I hope it helps you. Greeting

Attached this script to panel object…want to panel rotate in z axis using touch (rotate drag direction on panle)only…but rotating for x,y axis but not z. NOT WORKING Plz HELP
float speed = 3.0f; Touch touch; int id; void Start() { id = touch.fingerId; } void Update() { // transform.RotateAround( );

 if (Input.touchCount > 0 && Input.GetTouch(0).phase == TouchPhase.Moved && EventSystem.current.IsPointerOverGameObject(id))

// if(Input.GetMouseButton(0))
// Get movement of the finger since last frame
Vector3 touchDeltaPosition = Input.GetTouch(0).deltaPosition;
transform.Rotate(-touchDeltaPosition.x * speed0f, 0f, -touchDeltaPosition.z * speed, Space.Self);