I’m doing a Yaw-Pitch-Roll type moving a gameobject around a pivot.

I’m using a `RotatePointAroundPivot`

function (taken from this forum)

```
private Vector3 RotatePointAroundPivot(Vector3 point, Vector3 pivot, Vector3 angles)
{
Vector3 dir = point - pivot; // get point direction relative to pivot
dir = Quaternion.Euler(angles) * dir; // rotate it
point = dir + pivot; // calculate rotated point
return point; // return it
}
```

Any combination of Pitch or Yaw (angles.x or angles.y) works fine but Roll (angles.z) has no effect.

Can anyone explain? help me? etc.