how to get the angle between 2 objects

i have the camera in world position looking somewhere
ex
position (0,0,0) rotation (0,0,1)
and 1 object position at (0,1,0)

how can i get the angle from the original position/rotation of the camera toward the object?

do i have to get a matrix from the positionand rotation of the camera? and multiply some how to the position of the object?

thanks guys

1 Answer

1

Vector3.Angle() help you to find angle between two objects exist in world space.