Shoulder Offset

Hi. I’ve tried doing the shoulderOffset in a different way:

The lecture’s code is:

Vector3 shoulderOffset = Quaternion.Euler(0, 90, 0) * shootDir * shoulderOffsetAmount;

Whereas my code is:

Vector3 shoulderOffset = shooterUnit.transform.right * shoulderOffsetAmount;

I don’t understand why I’m getting slightly different results re camera position over the shoulder.

Thanks.

1 Like

The unit rotates as it shoots, the shootDir is the final rotation but the shooterUnit.transform.right might not be, the unit might be looking in a completely opposite direction when you first trigger the Shoot Action

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms