I have an object which gets instantiated at a distance. But when i set its rotation to an angle it differs by some angle. i tried setting its local rotation but that doesn’t work. i want to set it at the exact rotation of d original prefab as i m trying to imitate a rope. And all instantiated objects have the same differed rotation.[5874-differed+rotation.jpg|5874]
This is how it looks…
I think you are having an issue with the pivot point being centered to the object. Meaning when you rotate the object its rotating around the center point of that object. The best approach to moving pivot points in Unity, that I’ve found, is to:
- create a empty gameobject
- position the gameoject(this will be your pivot point)
- child your object to the empty game object
Now whenever you rotate your Parent(the empty gameObject), the child will rotate with it.