#How do I like rotate an object from another object?

1 messages · Page 1 of 1 (latest)

merry mantle
#

So I have my Camera "Camera" and my Object/Transform named "Pivot". I parented the Camera to the Pivot and when I rotate the pivot, it rotates the Camera from the camera position?
How could I fix this issue?I also am doing this using code but I will just show you a video in the editor.
(also is this the right channel to post this?)

dusty parcel
merry mantle
#

If I do this Pivot.transform == ...

#

would that be the right way to do it?

#

Chris

#

Are you there?

#

What

#

Why is it so weird in pivot mode

dusty parcel
merry mantle
#

so it kind of moves in a sphere pattern

dusty parcel
#

just to make sure we're on the same page - you want the camera to orbit around that Pivot, correct?

merry mantle
#

like 3rd person?

#

Yes that's what I need.The Camera orbiting around the Pivot

dusty parcel
#

what about if you set the "global" handle thing to "local"? (i don't remember exactly what that does tbh)

merry mantle
#

It is to change the rotation axis

#

But no

#

I will search orbit tutorials

#

Thanks Chris

dusty parcel
#

well, something's.. not right with your scene view, and i'm not sure what

#

i can orbit and rotate separately as you'd expect

merry mantle
dusty parcel
#

your camerapivot also seems to have synced position and rotation, which definitely doesn't make sense. perhaps reset the transform of the camerapivot and the camera, and then try again (moving the camera away from the pivot and rotating the pivot)

merry mantle
#

its like stuck there

#

it wont move

#

even when I pull it with move tool

#

Has cinemachine anything to do with that?

dusty parcel
#

mm, maybe? i'm not familiar with cinemachine at all

#

well, try removing the cinemachine stuff (perhaps duplicate this scene and try it in the copy) and see if you can move stuff then

#

also restarting the editor might be in order, just to rule out any random transient issue

merry mantle
#

Cinemachine messed up the camera

#

Thanks

#

NOW THIS POST IS SOLVED