Quaternion and Vector3

I am lost on why i get

‘Assets/Scripts/Move_Camera.cs(42,67): error CS0119: Expression denotes a type', where a variable’, value' or method group’ was expected’

With the following code - I am still new to Unity so be gentle :slight_smile:

Quaternion Targetrotation = Quaternion.Euler(y, x, 0);
Vector3	Targetposition = Targetrotation * Vector3(Targetrotation) * Vector3(0.0, 0.0, -distance) + target.position;

Firstly it’s the lack of new as @Kolkina says. Your next problem is that you are trying to multiply Vector3s - you can’t do that. And you certainly can’t do Vector3(TargetRotation) - what does that mean?

I think what you want to do is:

var targetPosition = (targetRotation * Vector3.forward * distance) + target.position; //or maybe - distance

Vector3.forward is (0,0,1). You can multiple the quaternion by the vector and the vector by the scalar.