Пример #1
0
    public void Act()
    {
        Vector3 currentPosition       = c_cameraData.v_currentPosition;
        Vector3 currentTargetPosition = c_cameraData.v_targetPosition;
        Vector3 lookVector            = c_cameraData.v_currentDirection;

        FocusCartridge.PointVectorAt(ref currentPosition, ref currentTargetPosition, ref lookVector);

        c_cameraData.v_currentDirection = lookVector;
    }
Пример #2
0
    public void Act()
    {
        Vector3 currentPosition       = c_cameraData.v_currentPosition;
        Vector3 currentTargetPosition = c_cameraData.v_targetPosition;
        Vector3 lookVector            = c_cameraData.v_currentDirection;

        FocusCartridge.PointVectorAt(ref currentPosition, ref currentTargetPosition, ref lookVector);

        c_cameraData.v_currentDirection = lookVector;
        c_cameraData.q_cameraRotation   = Quaternion.FromToRotation(Vector3.forward, lookVector);
    }